home *** CD-ROM | disk | FTP | other *** search
- *** Makefile.OLD Thu May 21 11:06:41 1992
- --- Makefile Mon May 18 12:15:47 1992
- ***************
- *** 22,28 ****
- LOCAL = /usr/local
- LIBDIR = ${LOCAL}/lib
- INCDIR = ${LOCAL}/include
- ! PERLLIB = ${LIB}/perl
-
- ###
- # compilation options
- --- 22,28 ----
- LOCAL = /usr/local
- LIBDIR = ${LOCAL}/lib
- INCDIR = ${LOCAL}/include
- ! PERLLIB = ${LIBDIR}/perl
-
- ###
- # compilation options
- ***************
- *** 101,107 ****
- doc/vparseargs3.inc
- SCRIPTS = test.sh test.csh test.ksh test.rc test.awk test.pl
- PERLSUB = ${NAME}.pl
- ! XXFILES = Intro README MANIFEST Makefile Makefile.cpp
-
- HDRS = ${NAME}.h \
- patchlevel.h \
- --- 101,107 ----
- doc/vparseargs3.inc
- SCRIPTS = test.sh test.csh test.ksh test.rc test.awk test.pl
- PERLSUB = ${NAME}.pl
- ! XXFILES = Intro README MANIFEST Makefile VMSbuild.com
-
- HDRS = ${NAME}.h \
- patchlevel.h \
- *** doc/sh_arrays.inc.OLD Thu May 21 11:07:07 1992
- --- doc/sh_arrays.inc Mon May 18 11:54:44 1992
- ***************
- *** 199,210 ****
- .ft R
- .RE
- .fi
- .SS "A Final Note on Argument Lists"
- .PP
- ! The word-lists used by the C and Z shells, the arrays used by the Korn shell,
- ! the Plan 9 shell, \fIawk\fP, \fIperl\fP, and the positional parameters used by
- ! all shells (if overwritten by \fBparseargs\fP) will preserve any \s-1IFS\s+1
- ! characters in their contents. That is to say that if an item in one of the
- ! aforementioned multi-word lists contains any \s-1IFS\s+1 characters, it will
- ! not be split up into multiple items but will remain a single item which
- ! contains \s-1IFS\s+1 characters.
- --- 199,221 ----
- .ft R
- .RE
- .fi
- + .SS "Tcl Argument Lists"
- + .PP
- + For \fItcl\fP, each argument list is considered a list and is set using
- + the following syntax:
- + .nf
- + .RS
- + .ft 4
- + set name [ list 'arg1' 'arg2' ... ] ;
- + .ft R
- + .RE
- + .fi
- .SS "A Final Note on Argument Lists"
- .PP
- ! The word-lists used by the \fIcsh\fP and \fIzsh\fP, the arrays used by
- ! \fIksh\fP, \fIrc\fP, \fIawk\fP, \fIperl\fP, \fItcl\fP, and the positional
- ! parameters used by all shells (if overwritten by \fBparseargs\fP) will
- ! preserve any \s-1IFS\s+1 characters in their contents. That is to say that
- ! if an item in one of the aforementioned multi-word lists contains any
- ! \s-1IFS\s+1 characters, it will not be split up into multiple items but
- ! will remain a single item which contains \s-1IFS\s+1 characters.
- *** parseargs.c.OLD Thu May 21 11:07:24 1992
- --- parseargs.c Mon May 18 12:03:13 1992
- ***************
- *** 1700,1709 ****
- ** for setting up an argument list depends largely upon the syntax of
- ** shell that was specified on the command line via the -s option
- ** (although ARGLIST arguments are treated exactly the same as ARGVEC
- ! ** arguments). With the exception perl which always uses a comma to
- ! ** separate array elements, all shells will use the string specified
- ! ** with the -S option as the field separator between elements of an
- ! ** array (the default field separator is a space character).
- **
- ** ^Resetting_the_Positional_Parameters_to_an_Argument_List:
- ** For the Bourne, Bourne-Again, and Korn shells, if the variable name
- --- 1700,1709 ----
- ** for setting up an argument list depends largely upon the syntax of
- ** shell that was specified on the command line via the -s option
- ** (although ARGLIST arguments are treated exactly the same as ARGVEC
- ! ** arguments). With the exception of perl which always uses a comma to
- ! ** separate array elements, all shells will use the string specified with
- ! ** the -S option as the field separator between elements of an array (the
- ! ** default field separator is a space character).
- **
- ** ^Resetting_the_Positional_Parameters_to_an_Argument_List:
- ** For the Bourne, Bourne-Again, and Korn shells, if the variable name
- ***************
- *** 1722,1729 ****
- ** to the contents of the argument list.
- **
- ** For the Plan 9 shell (rc), if the variable name corresponding to the
- ! ** ARGLIST argument is "*", then the positional parameters of then calling
- ! ** program will be re-assigned to the contents of the argument list.
- **
- ** For awk and perl, if the variable name corresponding to the ARGLIST
- ** argument is "ARGV", then the positional parameters of the calling
- --- 1722,1730 ----
- ** to the contents of the argument list.
- **
- ** For the Plan 9 shell (rc), if the variable name corresponding to the
- ! ** ARGLIST argument is "*", then the positional parameters of the
- ! ** calling program will be re-assigned to the contents of the argument
- ! ** list.
- **
- ** For awk and perl, if the variable name corresponding to the ARGLIST
- ** argument is "ARGV", then the positional parameters of the calling
- ***************
- *** 1843,1856 ****
- **
- ** @name=( 'arg1' , 'arg2' , ... );
- **
- ** ^A_Final_Note_on_Argument_Lists:
- ! ** The word-lists used by the C and Z shells, the arrays used by the Korn
- ! ** shell, the Plan 9 shell, awk, perl, and the positional parameters used
- ! ** by all shells (if overwritten by parseargs) will preserve any IFS
- ! ** characters in their contents. That is to say that if an item in one
- ! ** of the aforementioned multi-word lists contains any IFS characters, it
- ! ** will not be split up into multiple items but will remain a single item
- ! ** which contains IFS characters.
- **
- ** ^REQUIREMENTS:
- ** <val> should correspond to the vlue of the argument indicated by <ad>
- --- 1844,1872 ----
- **
- ** @name=( 'arg1' , 'arg2' , ... );
- **
- + ** ^Tcl_Argument_Lists:
- + ** For tcl, each argument list is considered a list and is set using the
- + ** following syntax:
- + **
- + ** set name [ list 'arg1' 'arg2' ... ] ;
- + **
- ** ^A_Final_Note_on_Argument_Lists:
- ! ** The word-lists used by the csh and zsh, the arrays used by ksh, rc,
- ! ** awk, perl, tcl, and the positional parameters used by all shells (if
- ! ** overwritten by parseargs) will preserve any IFS characters in their
- ! ** contents. That is to say that if an item in one of the aforementioned
- ! ** multi-word lists contains any IFS characters, it will not be split up
- ! ** into multiple items but will remain a single item which contains IFS
- ! ** characters.
- ! **
- ! ** Parseargs treats ARGLIST arguments in a special way. The method used
- ! ** for setting up an argument list depends largely upon the syntax of
- ! ** shell that was specified on the command line via the -s option
- ! ** (although ARGLIST arguments are treated exactly the same as ARGVEC
- ! ** arguments). With the exception perl which always uses a comma to
- ! ** separate array elements, all shells will use the string specified
- ! ** with the -S option as the field separator between elements of an
- ! ** array (the default field separator is a space character).
- **
- ** ^REQUIREMENTS:
- ** <val> should correspond to the vlue of the argument indicated by <ad>
- *** patchlevel.h.OLD Thu May 21 11:07:39 1992
- --- patchlevel.h Thu May 21 11:06:03 1992
- ***************
- *** 3,8 ****
- --- 3,14 ----
- **
- ** ^HISTORY:
- **
- + ** 05/18/92 Brad Appleton <brad@ssd.csd.harris.com>
- + ** Patch12
- + ** - Fixes to the Makefile and for tcl.
- + ** - Added tcl to the documentation
- + ** - Fixed error in strfuncs.h for strndup prototypes.
- + **
- ** 01/02/92 Brad Appleton <brad@ssd.csd.harris.com>
- ** Patch11
- ** - Added strndup() to strfuncs.[ch]
- ***************
- *** 155,161 ****
-
- #define VERSION 2
- #define REVISION 0
- ! #define PATCHLEVEL 11
-
- #ifdef __STDC__
- static const char
- --- 161,167 ----
-
- #define VERSION 2
- #define REVISION 0
- ! #define PATCHLEVEL 12
-
- #ifdef __STDC__
- static const char
- ***************
- *** 162,165 ****
- #else
- static char
- #endif
- ! _Ident[] = "@(#)parseargs 2.0 patchlevel 11";
- --- 168,171 ----
- #else
- static char
- #endif
- ! _Ident[] = "@(#)parseargs 2.0 patchlevel 12";
- *** strfuncs.h.OLD Thu May 21 11:07:49 1992
- --- strfuncs.h Mon May 18 14:29:59 1992
- ***************
- *** 23,30 ****
- EXTERN char *strlwr ARGS(( char * ));
- EXTERN int stricmp ARGS(( const char *, const char * ));
- EXTERN int strnicmp ARGS(( const char *, const char *, size_t ));
- ! EXTERN char *strndup ARGS(( const char * ));
- ! EXTERN char *strndup ARGS(( const char * ));
- EXTERN char *strdup ARGS(( const char * ));
-
- #ifdef BSD
- --- 23,30 ----
- EXTERN char *strlwr ARGS(( char * ));
- EXTERN int stricmp ARGS(( const char *, const char * ));
- EXTERN int strnicmp ARGS(( const char *, const char *, size_t ));
- ! EXTERN char *strdup ARGS(( const char * ));
- ! EXTERN char *strndup ARGS(( const char *, unsigned len ));
- EXTERN char *strdup ARGS(( const char * ));
-
- #ifdef BSD
- *** test.tcl.OLD Thu May 21 11:07:59 1992
- --- test.tcl Mon May 18 14:45:39 1992
- ***************
- *** 31,46 ****
- eval [ parseargs -u -a $arguments $scriptName $argv ]
-
- ## print the parsed arguments (use defaults if not defined)
- ! puts stdout "ARGUMENTS:"
- ! puts stdout "=========="
- ! puts stdout "Groups = $groups"
- ! puts stdout "Count = $count"
- ! puts stdout "Directory = $dirname"
- ! puts stdout "XFlag = $xflag"
- ! puts stdout "YFlag = $yflag"
- ! puts stdout "SepChar = $sepch"
- ! puts stdout "Name = $name"
- ! puts stdout "Files = $files"
- if {( "$string_flag" != "") } {
- if {( "$string" == "" )} {
- set string "!string arg ommitted on cmd-line!"
- --- 31,46 ----
- eval [ parseargs -u -a $arguments $scriptName $argv ]
-
- ## print the parsed arguments (use defaults if not defined)
- ! echo "ARGUMENTS:"
- ! echo "=========="
- ! echo "Groups = $groups"
- ! echo "Count = $count"
- ! echo "Directory = $dirname"
- ! echo "XFlag = $xflag"
- ! echo "YFlag = $yflag"
- ! echo "SepChar = $sepch"
- ! echo "Name = $name"
- ! echo "Files = $files"
- if {( "$string_flag" != "") } {
- if {( "$string" == "" )} {
- set string "!string arg ommitted on cmd-line!"
- ***************
- *** 48,53 ****
- } else {
- set string "default string"
- }
- ! puts stdout "String = $string"
- ! puts stdout "argv = $argv"
-
- --- 48,53 ----
- } else {
- set string "default string"
- }
- ! echo "String = $string"
- ! echo "argv = $argv"
-
-