commit bash-20060330 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 22:46:45 -05:00
parent 591dd2e5f8
commit 4c4d2fbfda
19 changed files with 1029 additions and 36 deletions
+12 -2
View File
@@ -81,8 +81,18 @@ ansicstr (string, len, flags, sawc, rlen)
case 'n': c = '\n'; break;
case 'r': c = '\r'; break;
case 't': c = '\t'; break;
case '0': case '1': case '2': case '3':
case '4': case '5': case '6': case '7':
case '1': case '2': case '3':
case '4': case '5': case '6':
case '7':
#if 1
if (flags & 1)
{
*r++ = '\\';
break;
}
/*FALLTHROUGH*/
#endif
case '0':
/* If (FLAGS & 1), we're translating a string for echo -e (or
the equivalent xpg_echo option), so we obey the SUSv3/
POSIX-2001 requirement and accept 0-3 octal digits after