fixed little bug in dir. (dir /a was broken)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1192
This commit is contained in:
parent
f56a4d0de0
commit
9d063495e7
1 changed files with 5 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell_cmds.cpp,v 1.25 2003-08-19 18:01:57 qbix79 Exp $ */
|
||||
/* $Id: shell_cmds.cpp,v 1.26 2003-08-20 12:21:42 qbix79 Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -100,6 +100,8 @@ void DOS_Shell::CMD_DELETE(char * args) {
|
|||
WriteOut(MSG_Get("SHELL_ILLEGAL_SWITCH"),rem);
|
||||
return;
|
||||
}
|
||||
/* If delete accept switches mind the space infront of them. See the dir /p code */
|
||||
|
||||
char full[DOS_PATHLENGTH];
|
||||
char buffer[CROSS_LEN];
|
||||
args = ExpandDot(args,buffer);
|
||||
|
@ -247,7 +249,8 @@ void DOS_Shell::CMD_DIR(char * args) {
|
|||
byte_count=file_count=dir_count=0;
|
||||
|
||||
char buffer[CROSS_LEN];
|
||||
if (strlen(args)==0) args="*.*";
|
||||
if (strlen(args)==0) args="*.*"; //no arguments.
|
||||
if ((strlen(args)==1) && (args[0]==' ')) args="*.*"; //stuff like dir /p
|
||||
args = ExpandDot(args,buffer);
|
||||
StripSpaces(args);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue