-
Notifications
You must be signed in to change notification settings - Fork 499
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
Superfluous backslash #306
Comments
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :) |
I'm not able to reproduce the problem 😞 Could you please take a screenshot of the preview window for the |
Thanks! That was insightful. I'll look into it |
Fixes #306 This only happens when using the bash widget
Just for your information, to switch the
See |
I am still having this problem in the current latest version 2.23. > navi --version
navi 2.23.0
> navi --print --query weather
...select in TUI...
curl -s "wttr.in" \ | grep -v "New feature" \ | grep -v Follow And of course the command fails. P.S. I am confused why the OP said they were using version 3.2.0. AFAICT this version does not exist? |
Oops 😂 should be 2.2.0 (latest version at the time when I reported this |
When retrieving a multiline command (with
\
at the end of each line except the last) using <C-g>, the actual output becomes a single line but the backslashes are preserved, which causes bash to parse it incorrectly.To Reproduce
misc/weather.cheat
.weather
. (In the interactive window the command is shown correctly ascurl -s "wttr.in" | grep -v "New feature" | grep -v Follow
)curl -s "wttr.in" \ | grep -v "New feature" \ | grep -v Follow
, which would give an errorgrep: : No such file or directory
(the single space after the second backslach treated as a filename).Expected behavior
The output should be
curl -s "wttr.in" | grep -v "New feature" | grep -v Follow
, as in the interactive window.Versions:
The text was updated successfully, but these errors were encountered: