diff --git a/bin/package b/bin/package index 0d57a3bfa..d3aeba5f5 100755 --- a/bin/package +++ b/bin/package @@ -1,4 +1,3 @@ -USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" ######################################################################## # # # This software is part of the ast package # @@ -122,7 +121,10 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in 0123) USAGE=$' [-? @(#)$Id: package (AT&T Research) 2012-06-28 $ -]'$USAGE_LICENSE$' +] +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?package - source and binary package control] [+DESCRIPTION?The \bpackage\b command controls source and binary packages. It is a \bsh\b(1) script coded for maximal portability. All diff --git a/src/cmd/INIT/Mamfile b/src/cmd/INIT/Mamfile index 4dfe4c746..8b5f58a79 100644 --- a/src/cmd/INIT/Mamfile +++ b/src/cmd/INIT/Mamfile @@ -71,16 +71,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - hurl.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2003-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat hurl.sh exec - } > hurl exec - ;; exec - esac exec - ;; exec - *) cat - hurl.sh > hurl <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2003-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -112,16 +109,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - iffe.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-author?Phong Vo ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat iffe.sh exec - } > iffe exec - ;; exec - esac exec - ;; exec - *) cat - iffe.sh > iffe <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-author?Phong Vo ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -153,16 +147,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - mktest.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat mktest.sh exec - } > mktest exec - ;; exec - esac exec - ;; exec - *) cat - mktest.sh > mktest <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -193,16 +184,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - package.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat package.sh exec - } > package exec - ;; exec - esac exec - ;; exec - *) cat - package.sh > package <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -234,16 +222,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - regress.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1995-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat regress.sh exec - } > regress exec - ;; exec - esac exec - ;; exec - *) cat - regress.sh > regress <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1995-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -275,16 +260,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - rt.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat rt.sh exec - } > rt exec - ;; exec - esac exec - ;; exec - *) cat - rt.sh > rt <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -315,16 +297,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - crossexec.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat crossexec.sh exec - } > crossexec exec - ;; exec - esac exec - ;; exec - *) cat - crossexec.sh > crossexec <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -356,16 +335,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - ditto.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-author?Lefty Koutsofios ][-copyright?Copyright (c) 2001-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat ditto.sh exec - } > ditto exec - ;; exec - esac exec - ;; exec - *) cat - ditto.sh > ditto <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-author?Lefty Koutsofios ][-copyright?Copyright (c) 2001-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -397,16 +373,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - execrate.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2002-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat execrate.sh exec - } > execrate exec - ;; exec - esac exec - ;; exec - *) cat - execrate.sh > execrate <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 2002-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -437,16 +410,13 @@ make install exec - case $i in exec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;; exec - esac - exec - cat - filter.sh <<'!' - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - exec - ! + exec - cat filter.sh exec - } > filter exec - ;; exec - esac exec - ;; exec - *) cat - filter.sh > filter <<'!' exec - ${mam_cc_SHELLMAGIC} - exec - USAGE_LICENSE="[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" exec - ! exec - ;; exec - esac @@ -542,7 +512,7 @@ make install done mamake.c meta mamake.o %.c>%.o mamake.c mamake prev mamake.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]"\" -c mamake.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -c mamake.c done mamake.o generated exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} -o mamake mamake.o done mamake generated @@ -588,7 +558,7 @@ make install done release.c meta release.o %.c>%.o release.c release prev release.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]"\" -c release.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -c release.c done release.o generated exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} -o release release.o done release generated diff --git a/src/cmd/INIT/crossexec.sh b/src/cmd/INIT/crossexec.sh index cedbccf8c..8e3e34474 100644 --- a/src/cmd/INIT/crossexec.sh +++ b/src/cmd/INIT/crossexec.sh @@ -31,7 +31,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: crossexec (AT&T Labs Research) 2004-01-04 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?crossexec - cross compiler a.out execution] [+DESCRIPTION?\bcrossexec\b runs a cross-compiled \acommand\a in an environment that supports a cross-compilation architecture different from the diff --git a/src/cmd/INIT/ditto.sh b/src/cmd/INIT/ditto.sh index 312f7022a..d58b6ac85 100644 --- a/src/cmd/INIT/ditto.sh +++ b/src/cmd/INIT/ditto.sh @@ -26,7 +26,10 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: ditto (AT&T Labs Research) 2010-11-22 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-author?Lefty Koutsofios ] +[-copyright?Copyright (c) 2001-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?ditto - replicate directory hierarchies] [+DESCRIPTION?\bditto\b replicates the \asource\a directory hierarchy to the \adestination\a directory hierarchy. Both \asource\a and diff --git a/src/cmd/INIT/execrate.sh b/src/cmd/INIT/execrate.sh index 50735dcc9..a19e9f378 100644 --- a/src/cmd/INIT/execrate.sh +++ b/src/cmd/INIT/execrate.sh @@ -37,7 +37,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: execrate (AT&T Labs Research) 2002-02-02 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 2002-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?execrate - wrapper for .exe challenged commands] [+DESCRIPTION?\bexecrate\b runs \acommand\a after checking the \afile\a operands for standard semantics with respect to \bwin32\b \b.exe\b diff --git a/src/cmd/INIT/filter.sh b/src/cmd/INIT/filter.sh index f1c70448e..af95f4c24 100644 --- a/src/cmd/INIT/filter.sh +++ b/src/cmd/INIT/filter.sh @@ -34,7 +34,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: filter (AT&T Labs Research) 2001-05-31 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?filter - run a command in stdin/stdout mode] [+DESCRIPTION?\bfilter\b runs \acommand\a in a mode that takes input from the \afile\a operands, or from the standard input if no \afile\a diff --git a/src/cmd/INIT/hurl.sh b/src/cmd/INIT/hurl.sh index a1da1eac0..7508e14f2 100644 --- a/src/cmd/INIT/hurl.sh +++ b/src/cmd/INIT/hurl.sh @@ -32,7 +32,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: hurl (AT&T Research) 2009-01-20 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 2003-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?hurl - copy http url data] [+DESCRIPTION?\bhurl\b copies the data for the \bhttp\b \aurl\a operand to the standard output. The \aurl\a must be of the form diff --git a/src/cmd/INIT/iffe.sh b/src/cmd/INIT/iffe.sh index 6eaaacc2e..00ce0dbad 100644 --- a/src/cmd/INIT/iffe.sh +++ b/src/cmd/INIT/iffe.sh @@ -721,7 +721,10 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: iffe (AT&T Research) 2012-07-17 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-author?Phong Vo ] +[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?iffe - C compilation environment feature probe] [+DESCRIPTION?\biffe\b is a command interpreter that probes the C compilation environment for features. A feature is any file, option diff --git a/src/cmd/INIT/mamake.c b/src/cmd/INIT/mamake.c index 4bcca91f5..3c4c2f4b2 100644 --- a/src/cmd/INIT/mamake.c +++ b/src/cmd/INIT/mamake.c @@ -27,7 +27,7 @@ */ #define RELEASE_DATE "2021-01-21" -static char id[] = "\n@(#)$Id: mamake (AT&T Research/ksh93) " RELEASE_DATE " $\0\n"; +static char id[] = "\n@(#)$Id: mamake (ksh 93u+m) " RELEASE_DATE " $\0\n"; #if _PACKAGE_ast @@ -35,8 +35,11 @@ static char id[] = "\n@(#)$Id: mamake (AT&T Research/ksh93) " RELEASE_DATE " $\0 #include static const char usage[] = -"[-?\n@(#)$Id: mamake (AT&T Research/ksh93) " RELEASE_DATE " $\n]" -USAGE_LICENSE +"[-?\n@(#)$Id: mamake (ksh 93u+m) " RELEASE_DATE " $\n]" +"[-author?Glenn Fowler ]" +"[-copyright?(c) 1994-2012 AT&T Intellectual Property]" +"[-copyright?(c) 2020-2021 Contributors to https://github.com/ksh93/ksh]" +"[-license?http://www.eclipse.org/org/documents/epl-v10.html]" "[+NAME?mamake - make abstract machine make]" "[+DESCRIPTION?\bmamake\b reads \amake abstract machine\a target and" " prerequisite file descriptions from a mamfile (see \b-f\b) and executes" diff --git a/src/cmd/INIT/mktest.sh b/src/cmd/INIT/mktest.sh index f24183eed..d694fc8f6 100755 --- a/src/cmd/INIT/mktest.sh +++ b/src/cmd/INIT/mktest.sh @@ -34,7 +34,9 @@ case $(getopts '[-][123:xyz]' opt --xyz 2>/dev/null; echo 0$opt) in [-? @(#)$Id: mktest (AT&T Labs Research) 2010-08-11 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?mktest - generate a regression test scripts] [+DESCRIPTION?\bmktest\b generates regression test scripts from test template commands in the \aunit\a.\brt\b file. The generated test diff --git a/src/cmd/INIT/package.sh b/src/cmd/INIT/package.sh index dfbedb435..d3aeba5f5 100644 --- a/src/cmd/INIT/package.sh +++ b/src/cmd/INIT/package.sh @@ -121,7 +121,10 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in 0123) USAGE=$' [-? @(#)$Id: package (AT&T Research) 2012-06-28 $ -]'$USAGE_LICENSE$' +] +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?package - source and binary package control] [+DESCRIPTION?The \bpackage\b command controls source and binary packages. It is a \bsh\b(1) script coded for maximal portability. All diff --git a/src/cmd/INIT/regress.sh b/src/cmd/INIT/regress.sh index 8b3106523..3ef3e85a7 100644 --- a/src/cmd/INIT/regress.sh +++ b/src/cmd/INIT/regress.sh @@ -25,7 +25,9 @@ case $(getopts '[-][123:xyz]' opt --xyz 2>/dev/null; echo 0$opt) in [-? @(#)$Id: regress (AT&T Research) 2012-02-02 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 1995-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?regress - run regression tests] [+DESCRIPTION?\bregress\b runs the tests in \aunit\a, or \aunit\a\b.tst\b if \aunit\a does not exist. If \acommand\a is omitted diff --git a/src/cmd/INIT/release.c b/src/cmd/INIT/release.c index cf519e401..97fb74df4 100644 --- a/src/cmd/INIT/release.c +++ b/src/cmd/INIT/release.c @@ -35,7 +35,9 @@ static char id[] = "\n@(#)$Id: release (AT&T Research) 2000-01-28 $\0\n"; static const char usage[] = "[-?\n@(#)$Id: release (AT&T Research) 2000-01-28 $\n]" -USAGE_LICENSE +"[-author?Glenn Fowler ]" +"[-copyright?Copyright (c) 1994-2012 AT&T Intellectual Property]" +"[-license?http://www.eclipse.org/org/documents/epl-v10.html]" "[+NAME?release - list recent changes]" "[+DESCRIPTION?\brelease\b lists the changes within the date range specified" " by the \b--from\b and \b--to\b options. The input files are assumed to" diff --git a/src/cmd/INIT/rt.sh b/src/cmd/INIT/rt.sh index 2b8b8408b..5dd4236a6 100644 --- a/src/cmd/INIT/rt.sh +++ b/src/cmd/INIT/rt.sh @@ -31,7 +31,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in [-? @(#)$Id: rt (AT&T Research) 2010-07-27 $ ] -'$USAGE_LICENSE$' +[-author?Glenn Fowler ] +[-copyright?Copyright (c) 2005-2012 AT&T Intellectual Property] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?rt - run "nmake test" and filter output] [+DESCRIPTION?\brt\b runs \vnmake test\v and filters the regression test output to contain only test summary lines. If no \atest\a diff --git a/src/cmd/builtin/Mamfile b/src/cmd/builtin/Mamfile index 164b1d215..d6c999e00 100644 --- a/src/cmd/builtin/Mamfile +++ b/src/cmd/builtin/Mamfile @@ -83,7 +83,7 @@ make install prev pty.c setv CMD_STANDALONE -DCMD_STANDALONE="b_pty" setv LICENSE -DLICENSE="since=2001,author=gsf+dgk" - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -D_PACKAGE_ast -DCMD_STANDALONE=b_pty -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 2001-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?builtin]"\" -c pty.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -D_PACKAGE_ast -DCMD_STANDALONE=b_pty -c pty.c done pty.o generated bind -lutil dontcare setv CMD_STANDALONE -DCMD_STANDALONE="b_pty" diff --git a/src/cmd/builtin/pty.c b/src/cmd/builtin/pty.c index b3f31ade0..17ccf52af 100644 --- a/src/cmd/builtin/pty.c +++ b/src/cmd/builtin/pty.c @@ -1,7 +1,7 @@ /*********************************************************************** * * * This software is part of the ast package * -* Copyright (c) 1992-2012 AT&T Intellectual Property * +* Copyright (c) 1992-2013 AT&T Intellectual Property * * and is licensed under the * * Eclipse Public License, Version 1.0 * * by AT&T Intellectual Property * @@ -21,8 +21,12 @@ #pragma prototyped static const char usage[] = -"[-?\n@(#)pty (AT&T Research) 2012-06-11\n]" -USAGE_LICENSE +"[-?\n@(#)pty (AT&T Research) 2013-05-22\n]" +"[-author?Glenn Fowler ]" +"[-author?David Korn ]" +"[-copyright?Copyright (c) 2001-2013 AT&T Intellectual Property]" +"[-license?http://www.eclipse.org/org/documents/epl-v10.html]" +"[--catalog?builtin]" "[+NAME?pty - create pseudo terminal and run command]" "[+DESCRIPTION?\bpty\b creates a pseudo pty and then runs \bcommand\b " "with arguments given by \aarg\a and the standard input, standard " diff --git a/src/cmd/ksh93/Mamfile b/src/cmd/ksh93/Mamfile index 490d55d7e..3267cd3aa 100644 --- a/src/cmd/ksh93/Mamfile +++ b/src/cmd/ksh93/Mamfile @@ -41,6 +41,7 @@ setv NMAKE nmake setv NMAKEFLAGS setv PR pr setv PRFLAGS +setv SH_DICT \"libshell\" setv SHELL /bin/sh setv SILENT setv TAR tar @@ -373,7 +374,7 @@ make install done bltins/enum.c meta enum.o %.c>%.o bltins/enum.c enum prev bltins/enum.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -Iinclude -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libshell"\" -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c bltins/enum.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -Iinclude -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=${SH_DICT} -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c bltins/enum.c prev SHOPT.sh done enum.o generated make getopts.o @@ -680,7 +681,7 @@ make install meta main.o %.c>%.o sh/main.c main prev sh/main.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_TIMEOUT+-DSHOPT_TIMEOUT=${SHOPT_TIMEOUT}} ${SHOPT_ACCT+-DSHOPT_ACCT=${SHOPT_ACCT}} ${SHOPT_SYSRC+-DSHOPT_SYSRC=${SHOPT_SYSRC}} ${SHOPT_REMOTE+-DSHOPT_REMOTE=${SHOPT_REMOTE}} ${SHOPT_OLDTERMIO+-DSHOPT_OLDTERMIO=${SHOPT_OLDTERMIO}} ${SHOPT_SPAWN+-DSHOPT_SPAWN=${SHOPT_SPAWN}} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}}${SH_DICT+-DSH_DICT=${SH_DICT}} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c sh/main.c + exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_TIMEOUT+-DSHOPT_TIMEOUT=${SHOPT_TIMEOUT}} ${SHOPT_ACCT+-DSHOPT_ACCT=${SHOPT_ACCT}} ${SHOPT_SYSRC+-DSHOPT_SYSRC=${SHOPT_SYSRC}} ${SHOPT_REMOTE+-DSHOPT_REMOTE=${SHOPT_REMOTE}} ${SHOPT_OLDTERMIO+-DSHOPT_OLDTERMIO=${SHOPT_OLDTERMIO}} ${SHOPT_SPAWN+-DSHOPT_SPAWN=${SHOPT_SPAWN}} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${DEBUG+-DDEBUG=${DEBUG}} -DSH_DICT=${SH_DICT} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c sh/main.c done main.o generated make nvdisc.o make sh/nvdisc.c @@ -703,7 +704,7 @@ make install meta nvtype.o %.c>%.o sh/nvtype.c nvtype prev sh/nvtype.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -D_PACKAGE_ast -D_API_ast=20100309 -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c sh/nvtype.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_PACKAGE_ast -D_API_ast=20100309 -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c sh/nvtype.c done nvtype.o generated make arith.o make sh/arith.c @@ -841,7 +842,7 @@ make install meta regress.o %.c>%.o bltins/regress.c regress prev bltins/regress.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c bltins/regress.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c bltins/regress.c done regress.o generated make fault.o make sh/fault.c @@ -1165,7 +1166,7 @@ make install meta trestore.o %.c>%.o sh/trestore.c trestore prev sh/trestore.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_SYSRC+-DSHOPT_SYSRC=${SHOPT_SYSRC}} ${SHOPT_ACCT+-DSHOPT_ACCT=${SHOPT_ACCT}} ${SHOPT_SPAWN+-DSHOPT_SPAWN=${SHOPT_SPAWN}} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} ${SH_DICT+-DSH_DICT=${SH_DICT}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -DKSHELL -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c sh/trestore.c + exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_SYSRC+-DSHOPT_SYSRC=${SHOPT_SYSRC}} ${SHOPT_ACCT+-DSHOPT_ACCT=${SHOPT_ACCT}} ${SHOPT_SPAWN+-DSHOPT_SPAWN=${SHOPT_SPAWN}} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -DKSHELL -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c sh/trestore.c done trestore.o generated make waitevent.o make sh/waitevent.c @@ -1248,7 +1249,7 @@ make install meta strdata.o %.c>%.o data/strdata.c strdata prev data/strdata.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} ${SH_DICT+-DSH_DICT=${SH_DICT}} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c data/strdata.c + exec - ${CC} ${mam_cc_FLAGS} ${SHOPT_P_SUID+-DSHOPT_P_SUID=${SHOPT_P_SUID}} ${SHOPT_REGRESS+-DSHOPT_REGRESS=${SHOPT_REGRESS}} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${SH_CMDLIB_DIR+-DSH_CMDLIB_DIR=${SH_CMDLIB_DIR}} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c data/strdata.c done strdata.o generated make testops.o make data/testops.c @@ -1259,7 +1260,7 @@ make install meta testops.o %.c>%.o data/testops.c testops prev data/testops.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c data/testops.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c data/testops.c done testops.o generated make keywords.o make data/keywords.c @@ -1317,7 +1318,7 @@ make install meta builtins.o %.c>%.o data/builtins.c builtins prev data/builtins.c prev SHOPT.sh - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c data/builtins.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -DSH_DICT=${SH_DICT} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_API_ast=20100309 -D_PACKAGE_ast -D_BLD_shell -DKSHELL -DERROR_CONTEXT_T=Error_context_t -c data/builtins.c done builtins.o generated make variables.o make data/variables.c @@ -1412,10 +1413,9 @@ make install prev sh/shcomp.c prev SHOPT.sh setv CC.DLL -UCC.DLL - setv SH_DICT -DSH_DICT="\"libshell\"" setv _BLD_shell -U_BLD_shell setv _BLD_DLL -U_BLD_DLL - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT=\""libshell"\" -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -DUSAGE_LICENSE=\""[-author?David Korn ][-copyright?Copyright (c) 1982-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell]"\" -c sh/shcomp.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSH_DICT=${SH_DICT} -D_API_ast=20100309 -D_PACKAGE_ast -DERROR_CONTEXT_T=Error_context_t -c sh/shcomp.c done shcomp.o generated prev libshell.a archive prev +ljobs @@ -1423,7 +1423,6 @@ make install prev ${mam_libsocket} prev ${mam_libsecdb} setv CC.DLL -UCC.DLL - setv SH_DICT -DSH_DICT="\"libshell\"" exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} done shcomp generated make suid_exec diff --git a/src/cmd/ksh93/bltins/enum.c b/src/cmd/ksh93/bltins/enum.c index 0f3c61aa5..1bb99abf1 100644 --- a/src/cmd/ksh93/bltins/enum.c +++ b/src/cmd/ksh93/bltins/enum.c @@ -22,7 +22,7 @@ static const char enum_usage[] = "[-?@(#)$Id: enum (AT&T Research) 2008-01-08 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?enum - create an enumeration type]" "[+DESCRIPTION?\benum\b is a declaration command that creates an enumeration " "type \atypename\a that can only store any one of the values in the indexed " @@ -43,7 +43,7 @@ USAGE_LICENSE static const char enum_type[] = "[-1c?\n@(#)$Id: type (AT&T Labs Research) 2008-01-08 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?\f?\f - create an instance of type \b\f?\f\b]" "[+DESCRIPTION?\b\f?\f\b creates a variable for each \aname\a with " "enumeration type \b\f?\f\b where \b\f?\f\b is a type that has been " diff --git a/src/cmd/ksh93/bltins/mkservice.c b/src/cmd/ksh93/bltins/mkservice.c index 2d5f52b6d..ea1c26aae 100644 --- a/src/cmd/ksh93/bltins/mkservice.c +++ b/src/cmd/ksh93/bltins/mkservice.c @@ -27,7 +27,7 @@ static const char mkservice_usage[] = "[-?\n@(#)$Id: mkservice (AT&T Research) 2001-06-13 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME? mkservice - create a shell server ]" "[+DESCRIPTION?\bmkservice\b creates a tcp or udp server that is " "implemented by shell functions.]" @@ -68,7 +68,7 @@ USAGE_LICENSE static const char eloop_usage[] = "[-?\n@(#)$Id: eloop (AT&T Research) 2001-06-13 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME? eloop - process event loop]" "[+DESCRIPTION?\beloop\b causes the shell to block waiting for events " "to process. By default, \beloop\b does not return.]" diff --git a/src/cmd/ksh93/bltins/regress.c b/src/cmd/ksh93/bltins/regress.c index 6dbb26b62..1a4d15e5e 100644 --- a/src/cmd/ksh93/bltins/regress.c +++ b/src/cmd/ksh93/bltins/regress.c @@ -45,7 +45,7 @@ static const char usage[] = "[-1p0?\n@(#)$Id: __regress__ (AT&T Research) 2009-03-29 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?__regress__ - shell regression test intercept control]" "[+DESCRIPTION?\b__regress__\b controls the regression test intercepts " "for shells compiled with SHOPT_REGRESS==1. Shells compiled this way are " diff --git a/src/cmd/ksh93/data/builtins.c b/src/cmd/ksh93/data/builtins.c index b9acebfc0..7e57bdce4 100644 --- a/src/cmd/ksh93/data/builtins.c +++ b/src/cmd/ksh93/data/builtins.c @@ -282,7 +282,7 @@ const char sh_set[] = const char sh_optbreak[] = "[-1c?\n@(#)$Id: break (AT&T Research) 1999-04-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?break - break out of loop ]" "[+DESCRIPTION?\bbreak\b is a shell special built-in that exits the " "smallest enclosing \bfor\b, \bselect\b, \bwhile\b, or \buntil\b loop, " @@ -300,7 +300,7 @@ USAGE_LICENSE const char sh_optcont[] = "[-1c?\n@(#)$Id: continue (AT&T Research) 1999-04-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?continue - continue execution at top of the loop]" "[+DESCRIPTION?\bcontinue\b is a shell special built-in that continues " "execution at the top of smallest enclosing enclosing \bfor\b, " @@ -318,8 +318,8 @@ USAGE_LICENSE const char sh_optalarm[] = "r [varname seconds]"; const char sh_optalias[] = -"[-1c?\n@(#)$Id: alias (AT&T Research/ksh93) 2020-06-10 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: alias (ksh 93u+m) 2020-06-10 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?alias - define or display aliases]" "[+DESCRIPTION?\balias\b creates or redefines alias definitions " "or writes the existing alias definitions to standard output. " @@ -359,7 +359,7 @@ USAGE_LICENSE const char sh_optbuiltin[] = "[-1c?\n@(#)$Id: builtin (AT&T Research) 2010-08-04 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?builtin - add, delete, or display shell built-ins]" "[+DESCRIPTION?\bbuiltin\b can be used to add, delete, or display " "built-in commands in the current shell environment. A built-in command " @@ -414,8 +414,8 @@ USAGE_LICENSE ; const char sh_optcd[] = -"[-1c?\n@(#)$Id: cd (AT&T Research/ksh93) 2021-01-19 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: cd (ksh 93u+m) 2021-01-19 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?cd - change working directory ]" "[+DESCRIPTION?\bcd\b changes the current working directory of the " "current shell environment.]" @@ -467,8 +467,8 @@ USAGE_LICENSE ; const char sh_optcommand[] = -"[-1c?\n@(#)$Id: command (AT&T Research/ksh93) 2021-01-30 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: command (ksh 93u+m) 2021-01-30 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?command - execute a simple command disabling special properties]" "[+DESCRIPTION?Without \b-v\b or \b-V\b, \bcommand\b executes \acmd\a " "with arguments given by \aarg\a, suppressing the shell function lookup " @@ -514,8 +514,8 @@ USAGE_LICENSE ; const char sh_optdot[] = -"[-1c?@(#)$Id: \b.\b (AT&T Research/ksh93) 2020-06-15 $\n]" -USAGE_LICENSE +"[-1c?@(#)$Id: \b.\b (ksh 93u+m) 2020-06-15 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?\f?\f - execute commands in the current environment]" "[+DESCRIPTION?\b.\b and \bsource\b are built-in commands that execute " "commands from a function or a file in the current environment. \b.\b " @@ -551,7 +551,7 @@ USAGE_LICENSE const char sh_opteval[] = "[-1c?\n@(#)$Id: eval (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?eval - create a shell command and process it]" "[+DESCRIPTION?\beval\b is a shell special built-in command that constructs " "a command by concatenating the \aarg\as together, separating each " @@ -570,8 +570,8 @@ USAGE_LICENSE ; const char sh_optexec[] = -"[-1c?\n@(#)$Id: exec (AT&T Research/ksh93) 2020-06-11 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: exec (ksh 93u+m) 2020-06-11 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?exec - execute command, open/close and duplicate file descriptors]" "[+DESCRIPTION?\bexec\b is a special built-in command that can be used to " "manipulate file descriptors or to replace the current shell " @@ -602,7 +602,7 @@ USAGE_LICENSE const char sh_optexit[] = "[-1c?\n@(#)$Id: exit (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?exit - exit the current shell]" "[+DESCRIPTION?\bexit\b is shell special built-in that causes the " "shell that invokes it to exit. Before exiting the shell, if the " @@ -620,7 +620,7 @@ USAGE_LICENSE const char sh_optexport[] = "[-1c?\n@(#)$Id: export (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?export - set export attribute on variables]" "[+DESCRIPTION?\bexport\b sets the export attribute on each of " "the variables specified by \aname\a which causes them " @@ -648,7 +648,7 @@ USAGE_LICENSE const char sh_optgetopts[] = ":[-1c?\n@(#)$Id: getopts (AT&T Research) 2005-01-01 $\n]" "[-author?Glenn Fowler ]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?\f?\f - parse utility options]" "[+DESCRIPTION?The \bgetopts\b utility can be used to retrieve options and " "arguments from a list of arguments given by \aargs\a or the positional " @@ -817,7 +817,7 @@ USAGE_LICENSE const char sh_optbg[] = "[-1c?@(#)$Id: bg (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?bg - resume jobs in the background]" "[+DESCRIPTION?\bbg\b places the given \ajob\as into the background " "and sends them a \bCONT\b signal to start them running.]" @@ -838,7 +838,7 @@ _JOB_ const char sh_optfg[] = "[-1c?@(#)$Id: fg (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?fg - move jobs to the foreground]" "[+DESCRIPTION?\bfg\b places the given \ajob\as into the foreground " "in sequence and sends them a \bCONT\b signal to start each running.]" @@ -859,7 +859,7 @@ _JOB_ const char sh_optdisown[] = "[-1c?@(#)$Id: disown (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?disown - disassociate a job with the current shell]" "[+DESCRIPTION?\bdisown\b prevents the current shell from sending " "a \bHUP\b signal to each of the given \ajob\as when " @@ -880,7 +880,7 @@ _JOB_ const char sh_optjobs[] = "[-1c?@(#)$Id: jobs (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?jobs - display status of jobs]" "[+DESCRIPTION?\bjobs\b displays information about specified \ajob\as " "that were started by the current shell environment on standard " @@ -910,7 +910,8 @@ _JOB_ ; const char sh_opthash[] = -"[-1c?\n@(#)$Id: hash (ksh93) 2021-01-07 $\n]" +"[-1c?\n@(#)$Id: hash (ksh 93u+m) 2021-01-07 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?hash - display the locations of recently used programs]" "[+DESCRIPTION?\bhash\b displays or modifies the hash table with the " "locations of recently used programs. If given no arguments, it lists " @@ -930,7 +931,7 @@ const char sh_opthash[] = const char sh_opthist[] = "[-1cn?@(#)$Id: hist (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?\f?\f - process command history list]" "[+DESCRIPTION?\b\f?\f\b lists, edits, or re-executes, commands " "previously entered into the current shell environment.]" @@ -998,7 +999,7 @@ USAGE_LICENSE const char sh_optkill[] = "[-1c?\n@(#)$Id: kill (AT&T Research) 2012-04-13 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?kill - terminate or signal process]" "[+DESCRIPTION?With the first form in which \b-l\b is not specified, " "\bkill\b sends a signal to one or more processes specified by " @@ -1049,7 +1050,8 @@ _JOB_ #if defined(JOBS) && defined(SIGSTOP) const char sh_optstop[] = -"[-1c?\n@(#)$Id: stop (ksh93) 2020-06-22 $\n]" +"[-1c?\n@(#)$Id: stop (ksh 93u+m) 2020-06-22 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?stop - suspend a process]" "[+DESCRIPTION?\bstop\b sends a \bSIGSTOP\b signal to one or more processes " "specified by \ajob\a, suspending them until they receive \bSIGCONT\b.]" @@ -1067,7 +1069,8 @@ _JOB_ ; const char sh_optsuspend[] = -"[-1c?\n@(#)$Id: suspend (ksh93) 2020-06-22 $\n]" +"[-1c?\n@(#)$Id: suspend (ksh 93u+m) 2020-06-22 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?suspend - stop the shell]" "[+DESCRIPTION?\bsuspend\b sends a \bSIGSTOP\b signal to the main shell " "process, suspending the script or child shell session until it " @@ -1085,7 +1088,7 @@ const char sh_optsuspend[] = const char sh_optlet[] = "[-1c?@(#)$Id: let (AT&T Research) 2000-04-02 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?let - evaluate arithmetic expressions]" "[+DESCRIPTION?\blet\b evaluates each \aexpr\a in the current " "shell environment as an arithmetic expression using ANSI C " @@ -1108,7 +1111,7 @@ USAGE_LICENSE const char sh_optprint[] = "[-1c?\n@(#)$Id: print (AT&T Research) 2008-11-26 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?print - write arguments to standard output]" "[+DESCRIPTION?By default, \bprint\b writes each \astring\a operand to " "standard output and appends a newline character.]" @@ -1162,8 +1165,8 @@ USAGE_LICENSE ; const char sh_optprintf[] = -"[-1c?\n@(#)$Id: printf (AT&T Research/ksh93) 2020-08-10 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: printf (ksh 93u+m) 2020-08-10 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?printf - write formatted output]" "[+DESCRIPTION?\bprintf\b writes each \astring\a operand to " "standard output using \aformat\a to control the output format.]" @@ -1336,7 +1339,7 @@ USAGE_LICENSE const char sh_optpwd[] = "[-1c?\n@(#)$Id: pwd (AT&T Research) 1999-06-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?pwd - write working directory name]" "[+DESCRIPTION?\bpwd\b writes an absolute pathname of the current working " "directory to standard output. An absolute pathname is a " @@ -1360,7 +1363,7 @@ USAGE_LICENSE const char sh_optread[] = "[-1c?\n@(#)$Id: read (AT&T Research) 2006-12-19 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?read - read a line from standard input]" "[+DESCRIPTION?\bread\b reads a line from standard input and breaks it " "into fields using the characters in value of the \bIFS\b variable " @@ -1409,8 +1412,8 @@ USAGE_LICENSE ; const char sh_optreadonly[] = -"[-1c?\n@(#)$Id: readonly (AT&T Research/ksh93) 2020-06-28 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: readonly (ksh 93u+m) 2020-06-28 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?readonly - set readonly attribute on variables]" "[+DESCRIPTION?\breadonly\b sets the readonly attribute on each of " "the variables specified by \aname\a which prevents their " @@ -1443,7 +1446,8 @@ USAGE_LICENSE ; const char sh_optredirect[] = -"[-1c?\n@(#)$Id: redirect (ksh93) 2020-08-08 $\n]" +"[-1c?\n@(#)$Id: redirect (ksh 93u+m) 2020-08-08 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?redirect - open/close and duplicate file descriptors]" "[+DESCRIPTION?This command only accepts input/output redirections. " "It can open and close files and modify file descriptors from \b0\b " @@ -1469,7 +1473,7 @@ const char sh_optredirect[] = const char sh_optreturn[] = "[-1c?\n@(#)$Id: return (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?return - return from a function or dot script ]" "[+DESCRIPTION?\breturn\b is a shell special built-in that causes the " "function or dot script that invokes it to exit. " @@ -1492,8 +1496,12 @@ USAGE_LICENSE const char sh_optksh[] = "+[-1?\n@(#)$Id: sh (AT&T Research) "SH_RELEASE" $\n]" -USAGE_LICENSE +"[-author?David Korn ]" +"[-author?Contributors to https://github.com/ksh93/ksh]" +"[-copyright?(c) 1982-2014 AT&T Intellectual Property]" "[-copyright?" SH_RELEASE_CPYR "]" +"[-license?http://www.eclipse.org/org/documents/epl-v10.html]" +"[--catalog?" SH_DICT "]" "[+NAME?\b\f?\f\b - Shell, the standard command language interpreter]" "[+DESCRIPTION?\b\f?\f\b is a command language interpreter that " "executes commands read from a command line string, the " @@ -1575,7 +1583,7 @@ USAGE_LICENSE ; const char sh_optset[] = "+[-1c?\n@(#)$Id: set (AT&T Research) 1999-09-28 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?set - set/unset options and positional parameters]" "[+DESCRIPTION?\bset\b sets or unsets options and positional parameters. " "Options that are specified with a \b-\b cause the options to " @@ -1616,7 +1624,7 @@ USAGE_LICENSE const char sh_optshift[] = "[-1c?\n@(#)$Id: shift (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?shift - shift positional parameters]" "[+DESCRIPTION?\bshift\b is a shell special built-in that shifts the " "positional parameters to the left by the number of places " @@ -1639,7 +1647,7 @@ USAGE_LICENSE const char sh_optsleep[] = "[-1c?\n@(#)$Id: sleep (AT&T Research) 2009-03-12 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?sleep - suspend execution for an interval]" "[+DESCRIPTION?\bsleep\b suspends execution for at least the time specified " "by \aduration\a or until a \bSIGALRM\b signal is received. " @@ -1673,7 +1681,7 @@ USAGE_LICENSE const char sh_opttrap[] = "[-1c?\n@(#)$Id: trap (AT&T Research) 1999-07-17 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?trap - trap signals and conditions]" "[+DESCRIPTION?\btrap\b is a special built-in that defines actions to be " "taken when conditions such as receiving a signal occur. Also, " @@ -1725,8 +1733,8 @@ USAGE_LICENSE ; const char sh_opttypeset[] = -"+[-1c?\n@(#)$Id: typeset (AT&T Research/ksh93) 2021-01-20 $\n]" -USAGE_LICENSE +"+[-1c?\n@(#)$Id: typeset (ksh 93u+m) 2021-01-20 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?typeset - declare or display variables with attributes]" "[+DESCRIPTION?Without the \b-f\b option, \btypeset\b sets, unsets, " "or displays attributes of variables as specified with the " @@ -1849,7 +1857,7 @@ USAGE_LICENSE const char sh_optulimit[] = "[-1c?@(#)$Id: ulimit (AT&T Research) 2003-06-21 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?ulimit - set or display resource limits]" "[+DESCRIPTION?\bulimit\b sets or displays resource limits. These " "limits apply to the current process and to each child process " @@ -1884,7 +1892,8 @@ USAGE_LICENSE ; const char sh_opttimes[] = -"[-1c?@(#)$Id: times (ksh93) 2020-07-14 $\n]" +"[-1c?@(#)$Id: times (ksh 93u+m) 2020-07-14 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?times - display CPU usage by the shell and child processes]" "[+DESCRIPTION?\btimes\b displays the accumulated user and system CPU times, " "one line with the times used by the shell and another with those used by " @@ -1894,7 +1903,7 @@ const char sh_opttimes[] = const char sh_optumask[] = "[-1c?\n@(#)$Id: umask (AT&T Research) 1999-04-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?umask - get or set the file creation mask]" "[+DESCRIPTION?\bumask\b sets the file creation mask of the current " "shell execution environment to the value specified by the " @@ -1921,7 +1930,7 @@ USAGE_LICENSE const char sh_optuniverse[] = " [name]"; const char sh_optunset[] = "[-1c?\n@(#)$Id: unset (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?unset - unset values and attributes of variables and functions]" "[+DESCRIPTION?For each \aname\a specified, \bunset\b unsets the variable, " "or function if \b-f\b is specified, from the current shell " @@ -1947,7 +1956,7 @@ USAGE_LICENSE const char sh_optunalias[] = "[-1c?\n@(#)$Id: unalias (AT&T Research) 1999-07-07 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?unalias - remove alias definitions]" "[+DESCRIPTION?\bunalias\b removes the definition of each named alias " "from the current shell execution environment, or all aliases if " @@ -1969,7 +1978,7 @@ USAGE_LICENSE const char sh_optwait[] = "[-1c?\n@(#)$Id: wait (AT&T Research) 1999-06-17 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?wait - wait for process or job completion]" "[+DESCRIPTION?\bwait\b with no operands, waits until all jobs " "known to the invoking shell have terminated. If one or more " @@ -1996,8 +2005,8 @@ _JOB_ ; const char sh_optwhence[] = -"[-1c?\n@(#)$Id: whence (AT&T Research/ksh93) 2020-09-25 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: whence (ksh 93u+m) 2020-09-25 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?whence, type - locate a command and describe its type]" "[+DESCRIPTION?Without \b-v\b, \bwhence\b writes on standard output an " "absolute pathname, if any, corresponding to \aname\a based " diff --git a/src/cmd/ksh93/data/testops.c b/src/cmd/ksh93/data/testops.c index 68415101b..32e39d1ad 100644 --- a/src/cmd/ksh93/data/testops.c +++ b/src/cmd/ksh93/data/testops.c @@ -56,8 +56,8 @@ const Shtable_t shtab_testops[] = }; const char sh_opttest[] = -"[-1c?\n@(#)$Id: test (AT&T Research/ksh93) 2020-08-31 $\n]" -USAGE_LICENSE +"[-1c?\n@(#)$Id: test (ksh 93u+m) 2020-08-31 $\n]" +"[--catalog?" SH_DICT "]" "[+NAME?test, [ - evaluate expression]" "[+DESCRIPTION?\btest\b evaluates expressions and returns its result using the " "exit status. Option parsing is not performed; all arguments, " diff --git a/src/cmd/ksh93/sh/nvtype.c b/src/cmd/ksh93/sh/nvtype.c index 61cc371bc..a9f652b8d 100644 --- a/src/cmd/ksh93/sh/nvtype.c +++ b/src/cmd/ksh93/sh/nvtype.c @@ -29,7 +29,7 @@ static const char sh_opttype[] = "[-1c?\n@(#)$Id: type (AT&T Labs Research) 2008-07-01 $\n]" -USAGE_LICENSE +"[--catalog?" SH_DICT "]" "[+NAME?\f?\f - set the type of variables to \b\f?\f\b]" "[+DESCRIPTION?\b\f?\f\b sets the type on each of the variables specified " "by \aname\a to \b\f?\f\b. If \b=\b\avalue\a is specified, " diff --git a/src/cmd/ksh93/sh/shcomp.c b/src/cmd/ksh93/sh/shcomp.c index 30e12273e..de5e3bac8 100644 --- a/src/cmd/ksh93/sh/shcomp.c +++ b/src/cmd/ksh93/sh/shcomp.c @@ -29,9 +29,12 @@ #include "version.h" static const char usage[] = -"[-?\n@(#)$Id: shcomp (AT&T Research/ksh93) " SH_RELEASE " $\n]" -USAGE_LICENSE +"[-?\n@(#)$Id: shcomp (AT&T Research) " SH_RELEASE " $\n]" +"[-author?David Korn ]" +"[-copyright?(c) 1982-2012 AT&T Intellectual Property]" "[-copyright?" SH_RELEASE_CPYR "]" +"[-license?http://www.eclipse.org/org/documents/epl-v10.html]" +"[--catalog?" SH_DICT "]" "[+NAME?shcomp - compile a shell script]" "[+DESCRIPTION?Unless \b-D\b is specified, \bshcomp\b takes a shell script, " "\ainfile\a, and creates a binary format file, \aoutfile\a, that " diff --git a/src/cmd/ksh93/tests/shtests b/src/cmd/ksh93/tests/shtests index d660a4aca..cbf577427 100755 --- a/src/cmd/ksh93/tests/shtests +++ b/src/cmd/ksh93/tests/shtests @@ -1,7 +1,5 @@ : ksh regression test harness : -USAGE_LICENSE="[-author?David Korn ][-author?Glenn Fowler ][-copyright?Copyright (c) 2000-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html]" - command=shtests setslocale='*@(locale).sh' @@ -10,9 +8,13 @@ valgrindflags='--xml=yes --log-file=/dev/null --track-origins=yes --read-var-inf USAGE=$' [-s8? -@(#)$Id: shtests (AT&T Research/ksh93) 2020-09-02 $ +@(#)$Id: shtests (ksh 93u+m) 2020-09-02 $ ] -'$USAGE_LICENSE$' +[-author?David Korn ] +[-author?Glenn Fowler ] +[-copyright?(c) 2000-2012 AT&T Intellectual Property] +[-copyright?(c) 2020-2021 Contributors to https://github.com/ksh93/ksh] +[-license?http://www.eclipse.org/org/documents/epl-v10.html] [+NAME?shtests - ksh regression test harness] [+DESCRIPTION?\bshtests\b is the \bksh\b(1) regression test harness for \b$SHELL\b or \bksh\b if \bSHELL\b is not defined and exported. If diff --git a/src/lib/libast/include/usage.h b/src/lib/libast/include/usage.h index c1ba3173e..d293a2e9b 100644 --- a/src/lib/libast/include/usage.h +++ b/src/lib/libast/include/usage.h @@ -30,8 +30,4 @@ #define ERROR_CATALOG 0 #endif -#ifndef USAGE_LICENSE -#define USAGE_LICENSE "[-license?THIS IS AN UNLICENSED COPY]" -#endif - #endif diff --git a/src/lib/libcmd/Mamfile b/src/lib/libcmd/Mamfile index 1c4f83b38..8c0ecca59 100644 --- a/src/lib/libcmd/Mamfile +++ b/src/lib/libcmd/Mamfile @@ -509,25 +509,25 @@ make install prev basename.c meta basename.o %.c>%.o basename.c basename prev basename.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c basename.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c basename.c done basename.o generated make cat.o prev cat.c meta cat.o %.c>%.o cat.c cat prev cat.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -D_BLD_cmd -D_PACKAGE_ast -c cat.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c cat.c done cat.o generated make chgrp.o prev chgrp.c meta chgrp.o %.c>%.o chgrp.c chgrp prev chgrp.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c chgrp.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c chgrp.c done chgrp.o generated make chmod.o prev chmod.c meta chmod.o %.c>%.o chmod.c chmod prev chmod.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c chmod.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c chmod.c done chmod.o generated make chown.o prev chown.c @@ -539,91 +539,91 @@ make install prev cksum.c meta cksum.o %.c>%.o cksum.c cksum prev cksum.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c cksum.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c cksum.c done cksum.o generated make cmp.o prev cmp.c meta cmp.o %.c>%.o cmp.c cmp prev cmp.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c cmp.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c cmp.c done cmp.o generated make comm.o prev comm.c meta comm.o %.c>%.o comm.c comm prev comm.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c comm.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c comm.c done comm.o generated make cp.o prev cp.c meta cp.o %.c>%.o cp.c cp prev cp.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c cp.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c cp.c done cp.o generated make cut.o prev cut.c meta cut.o %.c>%.o cut.c cut prev cut.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c cut.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c cut.c done cut.o generated make dirname.o prev dirname.c meta dirname.o %.c>%.o dirname.c dirname prev dirname.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c dirname.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c dirname.c done dirname.o generated make date.o prev date.c meta date.o %.c>%.o date.c date prev date.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c date.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c date.c done date.o generated make expr.o prev expr.c meta expr.o %.c>%.o expr.c expr prev expr.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c expr.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c expr.c done expr.o generated make fds.o prev fds.c meta fds.o %.c>%.o fds.c fds prev fds.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c fds.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c fds.c done fds.o generated make fmt.o prev fmt.c meta fmt.o %.c>%.o fmt.c fmt prev fmt.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c fmt.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c fmt.c done fmt.o generated make fold.o prev fold.c meta fold.o %.c>%.o fold.c fold prev fold.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c fold.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c fold.c done fold.o generated make getconf.o prev getconf.c meta getconf.o %.c>%.o getconf.c getconf prev getconf.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c getconf.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c getconf.c done getconf.o generated make head.o prev head.c meta head.o %.c>%.o head.c head prev head.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c head.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c head.c done head.o generated make id.o prev id.c meta id.o %.c>%.o id.c id prev id.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c id.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c id.c done id.o generated make join.o prev join.c meta join.o %.c>%.o join.c join prev join.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c join.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c join.c done join.o generated make ln.o prev ln.c @@ -635,7 +635,7 @@ make install prev logname.c meta logname.o %.c>%.o logname.c logname prev logname.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c logname.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c logname.c done logname.o generated make md5sum.o prev md5sum.c @@ -647,19 +647,19 @@ make install prev mkdir.c meta mkdir.o %.c>%.o mkdir.c mkdir prev mkdir.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c mkdir.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c mkdir.c done mkdir.o generated make mkfifo.o prev mkfifo.c meta mkfifo.o %.c>%.o mkfifo.c mkfifo prev mkfifo.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c mkfifo.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c mkfifo.c done mkfifo.o generated make mktemp.o prev mktemp.c meta mktemp.o %.c>%.o mktemp.c mktemp prev mktemp.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c mktemp.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c mktemp.c done mktemp.o generated make mv.o prev mv.c @@ -671,43 +671,43 @@ make install prev paste.c meta paste.o %.c>%.o paste.c paste prev paste.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c paste.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c paste.c done paste.o generated make pathchk.o prev pathchk.c meta pathchk.o %.c>%.o pathchk.c pathchk prev pathchk.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c pathchk.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c pathchk.c done pathchk.o generated make pids.o prev pids.c meta pids.o %.c>%.o pids.c pids prev pids.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c pids.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c pids.c done pids.o generated make rev.o prev rev.c meta rev.o %.c>%.o rev.c rev prev rev.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c rev.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c rev.c done rev.o generated make rm.o prev rm.c meta rm.o %.c>%.o rm.c rm prev rm.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c rm.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c rm.c done rm.o generated make rmdir.o prev rmdir.c meta rmdir.o %.c>%.o rmdir.c rmdir prev rmdir.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c rmdir.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c rmdir.c done rmdir.o generated make stty.o prev stty.c meta stty.o %.c>%.o stty.c stty prev stty.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c stty.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c stty.c done stty.o generated make sum.o prev sum.c @@ -719,49 +719,49 @@ make install prev sync.c meta sync.o %.c>%.o sync.c sync prev sync.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c sync.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c sync.c done sync.o generated make tail.o prev tail.c meta tail.o %.c>%.o tail.c tail prev tail.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c tail.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c tail.c done tail.o generated make tee.o prev tee.c meta tee.o %.c>%.o tee.c tee prev tee.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c tee.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c tee.c done tee.o generated make tty.o prev tty.c meta tty.o %.c>%.o tty.c tty prev tty.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c tty.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c tty.c done tty.o generated make uname.o prev uname.c meta uname.o %.c>%.o uname.c uname prev uname.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c uname.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DHOSTTYPE=\""${mam_cc_HOSTTYPE}"\" -D_PACKAGE_ast -D_BLD_cmd -c uname.c done uname.o generated make uniq.o prev uniq.c meta uniq.o %.c>%.o uniq.c uniq prev uniq.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c uniq.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -c uniq.c done uniq.o generated make vmstate.o prev vmstate.c meta vmstate.o %.c>%.o vmstate.c vmstate prev vmstate.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c vmstate.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c vmstate.c done vmstate.o generated make wc.o prev wc.c meta wc.o %.c>%.o wc.c wc prev wc.c - exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -DUSAGE_LICENSE=\""[-author?Glenn Fowler ][-author?David Korn ][-copyright?Copyright (c) 1992-2012 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libcmd]"\" -c wc.c + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_PACKAGE_ast -D_BLD_cmd -c wc.c done wc.o generated make revlib.o prev revlib.c diff --git a/src/lib/libcmd/basename.c b/src/lib/libcmd/basename.c index 946118357..303dfb6f5 100644 --- a/src/lib/libcmd/basename.c +++ b/src/lib/libcmd/basename.c @@ -30,7 +30,7 @@ static const char usage[] = "[-?\n@(#)$Id: basename (AT&T Research) 2010-05-06 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?basename - strip directory and suffix from filenames]" "[+DESCRIPTION?\bbasename\b removes all leading directory components " "from the file name defined by \astring\a. If the file name defined by " @@ -57,7 +57,7 @@ USAGE_LICENSE "\n" "[+EXIT STATUS?]" "{" - "[+0?Successful Completion.]" + "[+0?Successful completion.]" "[+>0?An error occurred.]" "}" "[+SEE ALSO?\bdirname\b(1), \bgetconf\b(1), \bbasename\b(3)]" diff --git a/src/lib/libcmd/cat.c b/src/lib/libcmd/cat.c index f477fdf2b..4c3d6426e 100644 --- a/src/lib/libcmd/cat.c +++ b/src/lib/libcmd/cat.c @@ -32,7 +32,7 @@ static const char usage[] = "[-?\n@(#)$Id: cat (AT&T Research) 2012-05-31 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?cat - concatenate files]" "[+DESCRIPTION?\bcat\b copies each \afile\a in sequence to the standard" " output. If no \afile\a is given, or if the \afile\a is \b-\b," diff --git a/src/lib/libcmd/chgrp.c b/src/lib/libcmd/chgrp.c index 680e46294..6fa3e446b 100644 --- a/src/lib/libcmd/chgrp.c +++ b/src/lib/libcmd/chgrp.c @@ -29,7 +29,7 @@ static const char usage_1[] = "[-?@(#)$Id: chgrp (AT&T Research) 2012-04-20 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" ; static const char usage_grp_1[] = diff --git a/src/lib/libcmd/chmod.c b/src/lib/libcmd/chmod.c index 5aad30965..5234e82d3 100644 --- a/src/lib/libcmd/chmod.c +++ b/src/lib/libcmd/chmod.c @@ -29,7 +29,7 @@ static const char usage[] = "[-?\n@(#)$Id: chmod (AT&T Research) 2012-04-20 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?chmod - change the access permissions of files]" "[+DESCRIPTION?\bchmod\b changes the permission of each file " "according to mode, which can be either a symbolic representation " diff --git a/src/lib/libcmd/cksum.c b/src/lib/libcmd/cksum.c index 0dba27d20..3e4fa9880 100644 --- a/src/lib/libcmd/cksum.c +++ b/src/lib/libcmd/cksum.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: sum (AT&T Research) 2012-04-20 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?cksum,md5sum,sum - print file checksum and block count]" "[+DESCRIPTION?\bsum\b lists the checksum, and for most methods the block" " count, for each file argument. The standard input is read if there are" diff --git a/src/lib/libcmd/cmp.c b/src/lib/libcmd/cmp.c index 4605ace49..25461d4c2 100644 --- a/src/lib/libcmd/cmp.c +++ b/src/lib/libcmd/cmp.c @@ -29,7 +29,7 @@ static const char usage[] = "[-?\n@(#)$Id: cmp (AT&T Research) 2010-04-11 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?cmp - compare two files]" "[+DESCRIPTION?\bcmp\b compares two files \afile1\a and \afile2\a. " "\bcmp\b writes no output if the files are the same. By default, if the " diff --git a/src/lib/libcmd/comm.c b/src/lib/libcmd/comm.c index 808000123..1e5798590 100644 --- a/src/lib/libcmd/comm.c +++ b/src/lib/libcmd/comm.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: comm (AT&T Research) 1999-04-28 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?comm - select or reject lines common to two files]" "[+DESCRIPTION?\bcomm\b reads two files \afile1\a and \afile2\a " "which should be ordered in the collating sequence of the " diff --git a/src/lib/libcmd/cp.c b/src/lib/libcmd/cp.c index ee355d7a3..d478d4dc7 100644 --- a/src/lib/libcmd/cp.c +++ b/src/lib/libcmd/cp.c @@ -28,7 +28,7 @@ static const char usage_head[] = "[-?@(#)$Id: cp (AT&T Research) 2012-04-20 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" ; static const char usage_cp[] = diff --git a/src/lib/libcmd/cut.c b/src/lib/libcmd/cut.c index 732d4309a..96571e336 100644 --- a/src/lib/libcmd/cut.c +++ b/src/lib/libcmd/cut.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: cut (AT&T Research) 2010-08-11 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?cut - cut out selected columns or fields of each line of a file]" "[+DESCRIPTION?\bcut\b bytes, characters, or character-delimited fields " "from one or more files, contatenating them on standard output.]" diff --git a/src/lib/libcmd/date.c b/src/lib/libcmd/date.c index 952b7b49c..d1a472282 100644 --- a/src/lib/libcmd/date.c +++ b/src/lib/libcmd/date.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: date (AT&T Research) 2011-01-27 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?date - set/list/convert dates]" "[+DESCRIPTION?\bdate\b sets the current date and time (with appropriate" " privilege), lists the current date or file dates, or converts" diff --git a/src/lib/libcmd/dirname.c b/src/lib/libcmd/dirname.c index a0704d5a2..9ac886b49 100644 --- a/src/lib/libcmd/dirname.c +++ b/src/lib/libcmd/dirname.c @@ -30,7 +30,7 @@ static const char usage[] = "[-?\n@(#)$Id: dirname (AT&T Research) 2009-01-31 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?dirname - return directory portion of file name]" "[+DESCRIPTION?\bdirname\b treats \astring\a as a file name and returns " "the name of the directory containing the file name by deleting " @@ -55,7 +55,7 @@ USAGE_LICENSE "\nstring\n" "\n" "[+EXIT STATUS?]{" - "[+0?Successful Completion.]" + "[+0?Successful completion.]" "[+>0?An error occurred.]" "}" "[+SEE ALSO?\bbasename\b(1), \bgetconf\b(1), \bdirname\b(3), \bpathname\b(3)]" diff --git a/src/lib/libcmd/expr.c b/src/lib/libcmd/expr.c index a19b04221..ce77ae7f6 100644 --- a/src/lib/libcmd/expr.c +++ b/src/lib/libcmd/expr.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: expr (AT&T Research) 2010-08-11 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?expr - evaluate arguments as an expression]" "[+DESCRIPTION?\bexpr\b evaluates an expression given as arguments and writes " "the result to standard output. The character \b0\b will be written " diff --git a/src/lib/libcmd/fds.c b/src/lib/libcmd/fds.c index 4dc934f77..e71bc895a 100644 --- a/src/lib/libcmd/fds.c +++ b/src/lib/libcmd/fds.c @@ -22,7 +22,7 @@ static const char usage[] = "[-?\n@(#)$Id: fds (AT&T Research) 2009-09-09 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?fds - list open file descriptor status]" "[+DESCRIPTION?\bfds\b lists the status for each open file descriptor. " "When invoked as a shell builtin it accesses the file descriptors of the " diff --git a/src/lib/libcmd/fmt.c b/src/lib/libcmd/fmt.c index e3207678b..5822aa7a9 100644 --- a/src/lib/libcmd/fmt.c +++ b/src/lib/libcmd/fmt.c @@ -22,7 +22,7 @@ static const char usage[] = "[-?\n@(#)$Id: fmt (AT&T Research) 2007-01-02 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?fmt - simple text formatter]" "[+DESCRIPTION?\bfmt\b reads the input files and left justifies space " "separated words into lines \awidth\a characters or less in length and " diff --git a/src/lib/libcmd/fold.c b/src/lib/libcmd/fold.c index 7e94ffdd2..5cbf41fc0 100644 --- a/src/lib/libcmd/fold.c +++ b/src/lib/libcmd/fold.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: fold (AT&T Research) 2004-11-18 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?fold - fold lines]" "[+DESCRIPTION?\bfold\b is a filter that folds lines from its input, " "breaking the lines to have a maximum of \awidth\a column " diff --git a/src/lib/libcmd/getconf.c b/src/lib/libcmd/getconf.c index 6e47abc6f..05d360ec2 100644 --- a/src/lib/libcmd/getconf.c +++ b/src/lib/libcmd/getconf.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: getconf (AT&T Research) 2012-06-25 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?getconf - get configuration values]" "[+DESCRIPTION?\bgetconf\b displays the system configuration value for" " \aname\a. If \aname\a is a filesystem specific variable then" diff --git a/src/lib/libcmd/head.c b/src/lib/libcmd/head.c index e5b756dfc..9fb4cd890 100644 --- a/src/lib/libcmd/head.c +++ b/src/lib/libcmd/head.c @@ -28,7 +28,7 @@ static const char usage[] = "[-n?\n@(#)$Id: head (AT&T Research) 2012-05-31 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?head - output beginning portion of one or more files ]" "[+DESCRIPTION?\bhead\b copies one or more input files to standard " "output stopping at a designated point for each file or to the end of " diff --git a/src/lib/libcmd/id.c b/src/lib/libcmd/id.c index aa0a65b19..d2f62d2a8 100644 --- a/src/lib/libcmd/id.c +++ b/src/lib/libcmd/id.c @@ -29,7 +29,7 @@ static const char usage[] = "[-?\n@(#)$Id: id (AT&T Research) 2004-06-11 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?id - return user identity]" "[+DESCRIPTION?If no \auser\a operand is specified \bid\b writes user and " "group IDs and the corresponding user and group names of the " diff --git a/src/lib/libcmd/join.c b/src/lib/libcmd/join.c index 675577c5f..7b99ae337 100644 --- a/src/lib/libcmd/join.c +++ b/src/lib/libcmd/join.c @@ -29,7 +29,7 @@ static const char usage[] = "[-?\n@(#)$Id: join (AT&T Research) 2009-12-10 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?join - relational database operator]" "[+DESCRIPTION?\bjoin\b performs an \aequality join\a on the files \afile1\a " "and \afile2\a and writes the resulting joined files to standard " diff --git a/src/lib/libcmd/logname.c b/src/lib/libcmd/logname.c index 5dce0e211..982bac144 100644 --- a/src/lib/libcmd/logname.c +++ b/src/lib/libcmd/logname.c @@ -28,19 +28,19 @@ static const char usage[] = "[-?\n@(#)$Id: logname (AT&T Research) 1999-04-30 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?logname - return the user's login name]" "[+DESCRIPTION?\blogname\b writes the users's login name to standard " "output. The login name is the string that is returned by the " "\bgetlogin\b(2) function. If \bgetlogin\b(2) does not return " - "successfully, the corresponding to the real user id of the calling " - "process is used instead.]" + "successfully, the name corresponding to the real user ID of the " + "calling process is used instead.]" "\n" "\n\n" "\n" "[+EXIT STATUS?]{" - "[+0?Successful Completion.]" + "[+0?Successful completion.]" "[+>0?An error occurred.]" "}" "[+SEE ALSO?\bgetlogin\b(2)]" diff --git a/src/lib/libcmd/mkdir.c b/src/lib/libcmd/mkdir.c index bdd6ecfd1..538606efc 100644 --- a/src/lib/libcmd/mkdir.c +++ b/src/lib/libcmd/mkdir.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: mkdir (AT&T Research) 2010-04-08 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?mkdir - make directories]" "[+DESCRIPTION?\bmkdir\b creates one or more directories. By " "default, the mode of created directories is \ba=rwx\b minus the " diff --git a/src/lib/libcmd/mkfifo.c b/src/lib/libcmd/mkfifo.c index 25861a13e..701a7a87b 100644 --- a/src/lib/libcmd/mkfifo.c +++ b/src/lib/libcmd/mkfifo.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: mkfifo (AT&T Research) 2009-01-02 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?mkfifo - make FIFOs (named pipes)]" "[+DESCRIPTION?\bmkfifo\b creates one or more FIFO's. By " "default, the mode of created FIFO is \ba=rw\b minus the " diff --git a/src/lib/libcmd/mktemp.c b/src/lib/libcmd/mktemp.c index ce7550404..f77652b80 100644 --- a/src/lib/libcmd/mktemp.c +++ b/src/lib/libcmd/mktemp.c @@ -22,7 +22,7 @@ static const char usage[] = "[-?\n@(#)$Id: mktemp (AT&T Research) 2010-03-05 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?mktemp - make temporary file or directory]" "[+DESCRIPTION?\bmktemp\b creates a temporary file with optional base " "name prefix \aprefix\a. If \aprefix\a is omitted then \btmp_\b is used " diff --git a/src/lib/libcmd/paste.c b/src/lib/libcmd/paste.c index cb22e8ecf..192637b55 100644 --- a/src/lib/libcmd/paste.c +++ b/src/lib/libcmd/paste.c @@ -30,7 +30,7 @@ static const char usage[] = "[-?\n@(#)$Id: paste (AT&T Research) 2010-06-12 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?paste - merge lines of files]" "[+DESCRIPTION?\bpaste\b concatenates the corresponding lines of a " "given input file and writes the resulting lines to standard " diff --git a/src/lib/libcmd/pathchk.c b/src/lib/libcmd/pathchk.c index 0cba4bd2f..b64031093 100644 --- a/src/lib/libcmd/pathchk.c +++ b/src/lib/libcmd/pathchk.c @@ -27,7 +27,7 @@ static const char usage[] = "[-?\n@(#)$Id: pathchk (AT&T Research) 2009-07-24 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?pathchk - check pathnames for portability]" "[+DESCRIPTION?\bpathchk\b checks each \apathname\a to see if it is " "valid and/or portable. A \apathname\a is valid if it can be used to " diff --git a/src/lib/libcmd/pids.c b/src/lib/libcmd/pids.c index 638f3d3cc..c50b7528c 100644 --- a/src/lib/libcmd/pids.c +++ b/src/lib/libcmd/pids.c @@ -24,7 +24,7 @@ static const char usage[] = "[-?\n@(#)$Id: pids (AT&T Research) 2011-08-27 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?pids - list calling shell process ids]" "[+DESCRIPTION?When invoked as a shell builtin, \bpids\b lists one or " "more of the calling process ids determined by \bgetpid\b(2), " diff --git a/src/lib/libcmd/rev.c b/src/lib/libcmd/rev.c index 98411204f..146d81bf8 100644 --- a/src/lib/libcmd/rev.c +++ b/src/lib/libcmd/rev.c @@ -32,7 +32,7 @@ static const char usage[] = "[-?\n@(#)$Id: rev (AT&T Research) 2007-11-29 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?rev - reverse the characters or lines of one or more files]" "[+DESCRIPTION?\brev\b copies one or more files to standard output " "reversing the order of characters on every line of the file " diff --git a/src/lib/libcmd/rm.c b/src/lib/libcmd/rm.c index 618bbf02b..5c18e1647 100644 --- a/src/lib/libcmd/rm.c +++ b/src/lib/libcmd/rm.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: rm (AT&T Research) 2012-02-14 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?rm - remove files]" "[+DESCRIPTION?\brm\b removes the named \afile\a arguments. By default it" " does not remove directories. If a file is unwritable, the" diff --git a/src/lib/libcmd/rmdir.c b/src/lib/libcmd/rmdir.c index f03b99b2b..314bf1d2f 100644 --- a/src/lib/libcmd/rmdir.c +++ b/src/lib/libcmd/rmdir.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: rmdir (AT&T Research) 2006-08-24 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?rmdir - remove empty directories]" "[+DESCRIPTION?\brmdir\b deletes each given directory. The directory " "must be empty; containing no entries other than \b.\b or \b..\b. " diff --git a/src/lib/libcmd/stty.c b/src/lib/libcmd/stty.c index 9afcd58d8..dcd6d2d3b 100644 --- a/src/lib/libcmd/stty.c +++ b/src/lib/libcmd/stty.c @@ -27,7 +27,7 @@ static const char usage[] = "[-?@(#)$Id: stty (AT&T Research) 2010-04-01 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?stty - set or get terminal modes]" "[+DESCRIPTION?\bstty\b sets certain terminal I/O modes for the device " "that is the current standard input; without arguments, it writes the " diff --git a/src/lib/libcmd/sync.c b/src/lib/libcmd/sync.c index 053172518..952cdf039 100644 --- a/src/lib/libcmd/sync.c +++ b/src/lib/libcmd/sync.c @@ -27,7 +27,7 @@ static const char usage[] = "[-?\n@(#)$Id: sync (AT&T Research) 2006-10-04 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?sync - schedule file system updates]" "[+DESCRIPTION?\bsync\b calls \bsync\b(2), which causes all information " "in memory that updates file systems to be scheduled for writing out to " diff --git a/src/lib/libcmd/tail.c b/src/lib/libcmd/tail.c index 2dbe470ed..492faaea9 100644 --- a/src/lib/libcmd/tail.c +++ b/src/lib/libcmd/tail.c @@ -29,7 +29,7 @@ static const char usage[] = "+[-?\n@(#)$Id: tail (AT&T Research) 2012-10-10 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?tail - output trailing portion of one or more files ]" "[+DESCRIPTION?\btail\b copies one or more input files to standard output " "starting at a designated point for each file. Copying starts " diff --git a/src/lib/libcmd/tee.c b/src/lib/libcmd/tee.c index b3247a35a..6630ba8de 100644 --- a/src/lib/libcmd/tee.c +++ b/src/lib/libcmd/tee.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: tee (AT&T Research) 2012-05-31 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?tee - duplicate standard input]" "[+DESCRIPTION?\btee\b copies standard input to standard output " "and to zero or more files. The options determine whether " diff --git a/src/lib/libcmd/tty.c b/src/lib/libcmd/tty.c index f5e6acaea..5a4f486f5 100644 --- a/src/lib/libcmd/tty.c +++ b/src/lib/libcmd/tty.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: tty (AT&T Research) 2008-03-13 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?tty - write the name of the terminal to standard output]" "[+DESCRIPTION?\btty\b writes the name of the terminal that is connected " "to standard input onto standard output. If the standard input is not " diff --git a/src/lib/libcmd/uname.c b/src/lib/libcmd/uname.c index b90bae535..e914ce0de 100644 --- a/src/lib/libcmd/uname.c +++ b/src/lib/libcmd/uname.c @@ -29,7 +29,7 @@ static const char usage[] = "[-?\n@(#)$Id: uname (AT&T Research) 2007-04-19 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?uname - identify the current system ]" "[+DESCRIPTION?By default \buname\b writes the operating system name to" " standard output. When options are specified, one or more" diff --git a/src/lib/libcmd/uniq.c b/src/lib/libcmd/uniq.c index 1336acd48..523e94440 100644 --- a/src/lib/libcmd/uniq.c +++ b/src/lib/libcmd/uniq.c @@ -27,7 +27,7 @@ static const char usage[] = "[-n?\n@(#)$Id: uniq (AT&T Research) 2009-11-28 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?uniq - Report or filter out repeated lines in a file]" "[+DESCRIPTION?\buniq\b reads the input, compares adjacent lines, and " "writes one copy of each input line on the output. The second " diff --git a/src/lib/libcmd/vmstate.c b/src/lib/libcmd/vmstate.c index 81b05165a..94a8a8487 100644 --- a/src/lib/libcmd/vmstate.c +++ b/src/lib/libcmd/vmstate.c @@ -24,7 +24,7 @@ static const char usage[] = "[-?\n@(#)$Id: vmstate (AT&T Research) 2010-04-08 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?vmstate - list the calling process vmalloc region state]" "[+DESCRIPTION?When invoked as a shell builtin, \bvmstate\b lists the " "calling process \bvmalloc\b(3) state for all regions.]" diff --git a/src/lib/libcmd/wc.c b/src/lib/libcmd/wc.c index 42956a0b5..7296f7c3e 100644 --- a/src/lib/libcmd/wc.c +++ b/src/lib/libcmd/wc.c @@ -28,7 +28,7 @@ static const char usage[] = "[-?\n@(#)$Id: wc (AT&T Research) 2009-11-28 $\n]" -USAGE_LICENSE +"[--catalog?" ERROR_CATALOG "]" "[+NAME?wc - print the number of bytes, words, and lines in files]" "[+DESCRIPTION?\bwc\b reads one or more input files and, by default, " "for each file writes a line containing the number of newlines, "