From cfbcd2dbe0ddcb18d8011e20058d1081d33f697a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 4 Jan 2007 15:41:21 +0000 Subject: 23086: printf should handle octal escapes in the \0NNN form --- Src/zsh.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/zsh.h b/Src/zsh.h index 89482e514..48f50e6a1 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1955,7 +1955,8 @@ enum { enum { /* * Handle octal where the first digit is non-zero e.g. \3, \33, \333 - * \0333 etc. is always handled. + * Otherwise \0333 etc. is handled, i.e. one of \0123 or \123 will + * work, but not both. */ GETKEY_OCTAL_ESC = (1 << 0), /* @@ -1990,7 +1991,7 @@ enum { /* echo builtin */ #define GETKEYS_ECHO (GETKEY_BACKSLASH_C) /* printf format string */ -#define GETKEYS_PRINTF (GETKEY_OCTAL_ESC|GETKEY_BACKSLASH_C) +#define GETKEYS_PRINTF (GETKEY_BACKSLASH_C) /* Full print without -e */ #define GETKEYS_PRINT (GETKEY_OCTAL_ESC|GETKEY_BACKSLASH_C|GETKEY_EMACS) /* bindkey */ -- cgit 1.4.1