diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-06-05 11:15:48 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-06-05 11:15:48 +0000 |
commit | 72529e4fa606e9ccb6b9200df2d696782c742ac7 (patch) | |
tree | 09d617db5dcefefcaee65ef2c6f4ea38b99fa26c /Src/zsh.h | |
parent | 96eb8faa7c811b49d78f3772e327c502a972da5e (diff) | |
download | zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.gz zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.xz zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.zip |
27304: add ${(q-)..} flag
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 3c1623c1f..3854116c0 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -210,8 +210,15 @@ enum { * in those cases where we need to represent a complete set. */ QT_BACKTICK, + /* + * Single quotes, but the default is not to quote unless necessary. + * This is only useful as an argument to quotestring(). + */ + QT_SINGLE_OPTIONAL }; +#define QT_IS_SINGLE(x) ((x) == QT_SINGLE || (x) == QT_SINGLE_OPTIONAL) + /* * Lexical tokens: unlike the character tokens above, these never * appear in strings and don't necessarily represent a single character. |