--- getopt/trunk/getopt.c 2014/11/24 10:51:27 371 +++ getopt/trunk/getopt.c 2014/11/24 12:36:11 377 @@ -39,8 +39,9 @@ * Fixed a few type's in the manpage * Version 1.1.5: Sun Aug 12 2012 * Sync with util-linux-2.21, fixed build problems, many new translations - * Version 1.1.6: ??? 2014 - * Sync with util-linux git 20141120, detect ambiguous long options + * Version 1.1.6: Mon Nov 24 2014 + * Sync with util-linux git 20141120, detect ambiguous long options, fix + * backslash problem in tcsh */ /* Exit codes: @@ -143,6 +144,10 @@ *bufptr++ = '\\'; *bufptr++ = '\''; *bufptr++ = '\''; + } else if (shell == TCSH && *argptr == '\\') { + /* Backslash: replace it with: '\\' */ + *bufptr++ = '\\'; + *bufptr++ = '\\'; } else if (shell == TCSH && *argptr == '!') { /* Exclamation mark: replace it with: \! */ *bufptr++ = '\'';