home *** CD-ROM | disk | FTP | other *** search
- *** doc/env_parse.inc.OLD Mon Mar 18 09:10:32 1991
- --- doc/env_parse.inc Sat Mar 16 15:19:28 1991
- ***************
- *** 62,66 ****
- undefined, then parsing behavior set by the programmer is used.
- If the programmer has not explicitly used
- .IR parsecntl (3)
- ! to modify the parsing behavior will be ``!Prompt + !Ignore'' for Unix
- ! MS-DOS, OS/2, and AmigaDOS systems, and ``Prompt'' for VMS systems.
- --- 62,68 ----
- undefined, then parsing behavior set by the programmer is used.
- If the programmer has not explicitly used
- .IR parsecntl (3)
- ! to modify the parsing behavior, then the default behavior will be
- ! ``Flags1st'' for Unix systems, ``!Prompt + !Ignore'' for AmigaDOS
- ! systems, ``CaseIgnore'' for MS-DOS and OS/2 systems, and ``Prompt''
- ! for VMS systems.
- *** xparse.c.OLD Mon Mar 18 09:10:36 1991
- --- xparse.c Mon Mar 18 08:51:08 1991
- ***************
- *** 537,543 ****
- --- 537,553 ----
- else anchor = ad;
-
- /* set default parse-flags */
- + #ifndef ibm_style
- cmd_flags(argd) = pa_DEFAULTS;
- + #else
- + {
- + char *pfx = getenv( "SWITCHAR" );
- + if ( pfx && *pfx == '-' )
- + cmd_flags(argd) = pa_FLAGS1ST;
- + else
- + cmd_flags(argd) = pa_DEFAULTS;
- + }
- + #endif
-
- /* if new-style, get the purpose from the command name */
- if ( !old_style && cmd_name(argd) ) {
- ***************
- *** 1168,1176 ****
- **
- ** If the environment variable "PARSECNTL" is empty or undefined, then
- ** parsing behavior set by the programmer is used. If the programmer has
- ! ** not explicitly used parsecntl(3) to modify the parsing behavior will
- ! ** be "!Prompt + !Ignore" for Unix and AmigaDOS systems, "Prompt" for
- ! ** VMS systems, and "CaseIgnore" for MS-DOS and OS/2 systems.
- **
- ** ^REQUIREMENTS:
- ** <cmd> must point to an array that has been declared using the CMD_XXXX
- --- 1178,1187 ----
- **
- ** If the environment variable "PARSECNTL" is empty or undefined, then
- ** parsing behavior set by the programmer is used. If the programmer has
- ! ** not explicitly used parsecntl(3) to modify the parsing behavior, then
- ! ** the default behavior will be "Flags1st" for Unix Systems,
- ! ** "!Prompt + !Ignore" for AmigaDOS systems, "Prompt" for VMS systems,
- ! ** and "CaseIgnore" for MS-DOS and OS/2 systems.
- **
- ** ^REQUIREMENTS:
- ** <cmd> must point to an array that has been declared using the CMD_XXXX
-