summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-01-04 17:24:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-01-04 17:24:01 +0000
commit46a163bd348f462e11cf4bc326b17735a93b9980 (patch)
tree8b2c845f14c2cd7afaac49351113ed33a01a5303 /Src/zsh.h
parentcfbcd2dbe0ddcb18d8011e20058d1081d33f697a (diff)
downloadzsh-46a163bd348f462e11cf4bc326b17735a93b9980.tar.gz
zsh-46a163bd348f462e11cf4bc326b17735a93b9980.tar.xz
zsh-46a163bd348f462e11cf4bc326b17735a93b9980.zip
23088: printf formats and arguments need different octal escape sequences
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 48f50e6a1..752587c57 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1990,8 +1990,10 @@ enum {
  */
 /* echo builtin */
 #define GETKEYS_ECHO	(GETKEY_BACKSLASH_C)
-/* printf format string */
-#define GETKEYS_PRINTF	(GETKEY_BACKSLASH_C)
+/* printf format string:  \123 -> S, \0123 -> NL 3 */
+#define GETKEYS_PRINTF_FMT	(GETKEY_OCTAL_ESC|GETKEY_BACKSLASH_C)
+/* printf argument:  \123 -> \123, \0123 -> S */
+#define GETKEYS_PRINTF_ARG	(GETKEY_BACKSLASH_C)
 /* Full print without -e */
 #define GETKEYS_PRINT	(GETKEY_OCTAL_ESC|GETKEY_BACKSLASH_C|GETKEY_EMACS)
 /* bindkey */