diff options
| author | kre <kre@NetBSD.org> | 2017-11-16 19:41:02 +0000 |
|---|---|---|
| committer | kre <kre@NetBSD.org> | 2017-11-16 19:41:02 +0000 |
| commit | e50a69db5c8f1475586d525d2252b5d3d6a3dbdb (patch) | |
| tree | 63b76224e11759d3851a8b3cb497625e80fc0203 /external/bsd/tre/dist/python/tre-python.c | |
| parent | 8a35148ee954582fea5dd43edc0aa36e979c2b8b (diff) | |
Improve quoting in xtrace (-x) output ... if a string ("word") to be
output includes a single quote (') then see if using double-quotes
to quote it is reasonable (if no chars that are magic in " also appear).
If so, and if the string is not entirely the ' character, then
use " quoting. This avoids some ugly looking results (occasionally).
Also, fix a bug introduced about 20 months ago where null strings
in xtrace output are dropped, instead of made explicit ('').
To observe this, before you get the fix: set -x; echo '' (or similar.)
Move a comment from the wrong place to the right place.
Diffstat (limited to 'external/bsd/tre/dist/python/tre-python.c')
0 files changed, 0 insertions, 0 deletions
