diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-01-04 15:41:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-01-04 15:41:21 +0000 |
commit | cfbcd2dbe0ddcb18d8011e20058d1081d33f697a (patch) | |
tree | e9507c1f6961816df9ff3ae46b11a2961a3c4015 /Src | |
parent | f7476178bc3d0080c1c0fff3f88fe12886f471a1 (diff) | |
download | zsh-cfbcd2dbe0ddcb18d8011e20058d1081d33f697a.tar.gz zsh-cfbcd2dbe0ddcb18d8011e20058d1081d33f697a.tar.xz zsh-cfbcd2dbe0ddcb18d8011e20058d1081d33f697a.zip |
23086: printf should handle octal escapes in the \0NNN form
Diffstat (limited to 'Src')
-rw-r--r-- | Src/zsh.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |