diff options
author | Rory Dudley | 2024-03-31 00:14:46 -0600 |
---|---|---|
committer | Rory Dudley | 2024-03-31 00:14:46 -0600 |
commit | f03f4e0fcf62c9b3267bc5d8b62068d89ec593cd (patch) | |
tree | 59601f4d451a462572ebe024121ce396749d8f03 /dist/man/dwvsh.1 | |
parent | c433dd2c400d9f2e8421f074be1b287d27b709df (diff) | |
download | dwarvish-f03f4e0fcf62c9b3267bc5d8b62068d89ec593cd.tar.gz |
Don't interpret environment variables in single quoted stringscompose
Previously, if an environment variable was given in a string, such as:
'$PATH' or "$PATH", both would be replaced with the value of $PATH from
the environment. However, for single quotes strings, any values inside
should be taken at face value. In other words, echo '$PATH' should
simply write out: $PATH, and not whatever environment value $PATH
happens to be. This patch replaced '$' in single quoted strings with
the ASCII shift out (x0e) character. Any ASCII SO placeholder is
replaced with a '$' in recite(), after the environment variables have
been accounted for.
Diffstat (limited to 'dist/man/dwvsh.1')
0 files changed, 0 insertions, 0 deletions