diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-12-07 21:49:07 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-12-07 21:49:07 +0000 |
commit | f5b8efa7e0450450a91c8263733502f9de6729b4 (patch) | |
tree | 29b5f892a5d76ab66179b0502a25b9f95840093c /Src/zsh.h | |
parent | 9fb30cf572f7c5ff26e883396a5020da89d9541a (diff) | |
download | zsh-f5b8efa7e0450450a91c8263733502f9de6729b4.tar.gz 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.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |