- Timestamp:
- Apr 19, 2020 11:08:16 PM (5 years ago)
- Location:
- trunk/src/kmk/kmkbuiltin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/common-env-and-cwd-opt.c
r3192 r3332 278 278 return kBuiltinOptEnvAddVar(pCtx, ppapszEnv, pcEnvVars, pcAllocatedEnvVars, cVerbosity, pszValue); 279 279 } 280 return errx(pCtx, 1, "Missing '=': - E %s", pszValue);280 return errx(pCtx, 1, "Missing '=': -%c %s", fAppend ? 'A' : 'D', pszValue); 281 281 } 282 282 -
trunk/src/kmk/kmkbuiltin/redirect.c
r3247 r3332 114 114 static int kmk_redirect_usage(PKMKBUILTINCTX pCtx, int fIsErr) 115 115 { 116 /* 0 1 2 3 4 5 6 7 8 */ 117 /* 012345678901234567890123456789012345678901234567890123456789012345678901234567890 */ 116 118 kmk_builtin_ctx_printf(pCtx, fIsErr, 117 " usage: %s [-[rwa+tb]<fd> <file>] [-d<fd>=<src-fd>] [-c<fd>] [--stdin-pipe]\n"118 " [-Z] [-E <var=val>] [- C <dir>] [--wcc-brain-damage]\n"119 " [- v] -- <program> [args]\n"119 "Usage: %s [-[rwa+tb]<fd> <file>] [-d<fd>=<src-fd>] [-c<fd>] [--stdin-pipe]\n" 120 " [-Z] [-E <var=val>] [-A <var=val>] [-P <var=val>] [-D <var>]\n" 121 " [-C <dir>] [--wcc-brain-damage] [-v] -- <program> [args]\n" 120 122 " or: %s --help\n" 121 123 " or: %s --version\n" 122 124 "\n" 123 "The rwa+tb is like for fopen, if not specified it defaults to w+.\n" 124 "The <fd> is either a number or an alias for the standard handles:\n" 125 " i = stdin\n" 126 " o = stdout\n" 127 " e = stderr\n" 125 "Options:\n" 126 "-[rwa+tb]<fd> <file>\n" 127 " The rwa+tb is like for fopen, if not specified it defaults to w+.\n" 128 " The <fd> is either a number or an alias for the standard handles:\n" 129 " i = stdin\n" 130 " o = stdout\n" 131 " e = stderr\n" 132 "-d\n" 133 " The -d switch duplicate the right hand file descriptor (src-fd) to the left\n" 134 " hand side one (fd). The latter is limited to standard handles on windows.\n" 135 "-c <fd>, --close <fd>\n" 136 " The -c switch will close the specified file descriptor. Limited to standard\n" 137 " handles on windows.\n" 138 "--stdin-pipe\n" 139 " The --stdin-pipe switch will replace stdin with the read end of an\n" 140 " anonymous pipe. This is for tricking things like rsh.exe that blocks\n" 141 " reading on stdin.\n" 142 "-Z, --zap-env, --ignore-environment\n" 143 " The -Z switch zaps the environment.\n" 144 "-E <var=val>, --set <var=val>, --env <var=val>\n" 145 " The -E (--set, --env) switch is for making changes to the environment\n" 146 " in an putenv fashion.\n" 147 "-A <var=val>, --append <var=val>\n" 148 " The -A switch appends to an environment variable in a putenv fashion.\n" 149 "-D <var=val>, --prepend <var=val>\n" 150 " The -D switch prepends to an environment variable in a putenv fashion.\n" 151 "-U <var>, --unset <var>\n" 152 " The -U switch deletes an environment variable.\n" 153 /* 0 1 2 3 4 5 6 7 8 */ 154 /* 012345678901234567890123456789012345678901234567890123456789012345678901234567890 */ 155 "-C <dir>, --chdir <dir>\n" 156 " The -C switch is for changing the current directory. Please specify an\n" 157 " absolute program path as it's platform dependent whether this takes\n" 158 " effect before or after the executable is located.\n" 159 "--wcc-brain-damage, --watcom-brain-damage\n" 160 " The --wcc-brain-damage switch is to work around wcc and wcc386\n" 161 " (Open Watcom) not following normal quoting conventions on Windows and OS/2.\n" 162 "-v, --verbose\n" 163 " The -v switch is for making the thing more verbose.\n" 128 164 "\n" 129 "The -d switch duplicate the right hand file descriptor (src-fd) to the left\n" 130 "hand side one (fd). The latter is limited to standard handles on windows.\n" 131 "\n" 132 "The -c switch will close the specified file descriptor. Limited to standard\n" 133 "handles on windows.\n" 134 "\n" 135 "The --stdin-pipe switch will replace stdin with the read end of an anonymous\n" 136 "pipe. This is for tricking things like rsh.exe that blocks reading on stdin.\n" 137 "\n" 138 "The -Z switch zaps the environment.\n" 139 "\n" 140 "The -E switch is for making changes to the environment in a putenv\n" 141 "fashion.\n" 142 "\n" 143 "The -C switch is for changing the current directory. Please specify an\n" 144 "absolute program path as it's platform dependent whether this takes effect\n" 145 "before or after the executable is located.\n" 146 "\n" 147 "The --wcc-brain-damage switch is to work around wcc and wcc386 (Open Watcom)\n" 148 "not following normal quoting conventions on Windows, OS/2, and DOS.\n" 149 "\n" 150 "The -v switch is for making the thing more verbose.\n" 165 "On OS/2 the kernel variables BEGINLIBPATH, ENDLIBPATH and LIBPATHSTRICT can be\n" 166 "accessed as-if they were regular enviornment variables.\n" 151 167 "\n" 152 168 "This command was originally just a quick hack to avoid invoking the shell\n" … … 154 170 "stability issues on SMP machines. It has since grown into something like\n" 155 171 "/usr/bin/env on steroids.\n" 172 /* 0 1 2 3 4 5 6 7 8 */ 173 /* 012345678901234567890123456789012345678901234567890123456789012345678901234567890 */ 156 174 , 157 175 pCtx->pszProgName, pCtx->pszProgName, pCtx->pszProgName);
Note:
See TracChangeset
for help on using the changeset viewer.