-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtrace output doubles backslashes and single-quotes #700
Comments
OK, yeah I can change this to use some shell routines, e.g. for |
One thing I noticed is that for a string with newlines like
bash actually prints a real newline in the mksh does that. I'm not sure exactly what to do for OSH yet, but I'm looking at it. Right now we don't have a routine that outputs If it were |
Weird, bash does print non-printable characters with So yeah the goal of CSTR in #582 is to come up with one format rather than 10 different little buggy formats that bash has. There are similar issues when you try to complete filenames with newlines, etc. |
This is done with the "QSN" encoder. Addresses issue #700.
OK I fixed this -- I wrote a proper shell string encoder! It uses (I generalized this to QSN which is the new name for CSTR .. there is a thread on Zulip about it if anyone's interested.) |
I'm guessing this isn't intended because you can run a command from the xtrace output and get a completely different result; this tripped me up for quite a while when debugging for #679.
The text was updated successfully, but these errors were encountered: