/[public]/getopt/trunk/getopt.c
ViewVC logotype

Diff of /getopt/trunk/getopt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 371 Revision 377
37 * <misiek@pld.org.pl>) 37 * <misiek@pld.org.pl>)
38 * Version 1.1.4: Mon Nov 7 2005 38 * Version 1.1.4: Mon Nov 7 2005
39 * Fixed a few type's in the manpage 39 * Fixed a few type's in the manpage
40 * Version 1.1.5: Sun Aug 12 2012 40 * Version 1.1.5: Sun Aug 12 2012
41 * Sync with util-linux-2.21, fixed build problems, many new translations 41 * Sync with util-linux-2.21, fixed build problems, many new translations
42 * Version 1.1.6: ??? 2014 42 * Version 1.1.6: Mon Nov 24 2014
43 * Sync with util-linux git 20141120, detect ambiguous long options 43 * Sync with util-linux git 20141120, detect ambiguous long options, fix
44 * backslash problem in tcsh
44 */ 45 */
45 46
46/* Exit codes: 47/* Exit codes:
47 * 0) No errors, successful operation. 48 * 0) No errors, successful operation.
48 * 1) getopt(3) returned an error. 49 * 1) getopt(3) returned an error.
141 /* Quote: replace it with: '\'' */ 142 /* Quote: replace it with: '\'' */
142 *bufptr++ = '\''; 143 *bufptr++ = '\'';
143 *bufptr++ = '\\'; 144 *bufptr++ = '\\';
144 *bufptr++ = '\''; 145 *bufptr++ = '\'';
145 *bufptr++ = '\''; 146 *bufptr++ = '\'';
147 } else if (shell == TCSH && *argptr == '\\') {
148 /* Backslash: replace it with: '\\' */
149 *bufptr++ = '\\';
150 *bufptr++ = '\\';
146 } else if (shell == TCSH && *argptr == '!') { 151 } else if (shell == TCSH && *argptr == '!') {
147 /* Exclamation mark: replace it with: \! */ 152 /* Exclamation mark: replace it with: \! */
148 *bufptr++ = '\''; 153 *bufptr++ = '\'';
149 *bufptr++ = '\\'; 154 *bufptr++ = '\\';
150 *bufptr++ = '!'; 155 *bufptr++ = '!';

Legend:
Removed from v.371  
changed lines
  Added in v.377

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26