about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-12-07 21:49:07 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-12-07 21:49:07 +0000
commitf5b8efa7e0450450a91c8263733502f9de6729b4 (patch)
tree29b5f892a5d76ab66179b0502a25b9f95840093c /Src/zsh.h
parent9fb30cf572f7c5ff26e883396a5020da89d9541a (diff)
downloadzsh-f5b8efa7e0450450a91c8263733502f9de6729b4.tar.gz
zsh-f5b8efa7e0450450a91c8263733502f9de6729b4.tar.xz
zsh-f5b8efa7e0450450a91c8263733502f9de6729b4.zip
37344: restore old printable quoting, add ${(q+)...}.
The \C- form is only used inside quotedzputs().

${(q+)...} outputs a quotedzputs() representation.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index caf7def06..0302d6886 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -272,7 +272,12 @@ enum {
     /*
      * As QT_BACKSLASH, but a NULL string is shown as ''.
      */
-    QT_BACKSLASH_SHOWNULL
+    QT_BACKSLASH_SHOWNULL,
+    /*
+     * Quoting as produced by quotedzputs(), used for human
+     * readability of parameter values.
+     */
+    QT_QUOTEDZPUTS
 };
 
 #define QT_IS_SINGLE(x)	((x) == QT_SINGLE || (x) == QT_SINGLE_OPTIONAL)
@@ -3055,6 +3060,7 @@ enum {
 enum {
     NICEFLAG_HEAP = 1,		/* Heap allocation where needed */
     NICEFLAG_QUOTE = 2,		/* Result will appear in $'...' */
+    NICEFLAG_NODUP = 4,         /* Leave allocated */
 };
 
 /* Metafied input */