Prevent bash from interpeting {+} in python script? #4293
Unanswered
rickalex21
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't understand. What do you mean by "command"s? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a python program that calls another python module to open selected files in Neovim, each in a new tab with the cursor at the correct line. I am aware of the fzf.vim plugin. However, I prefer using my own handler, neovim_fzf_handler since this is a standalone program.
The issue is that Bash interprets {+} as commands instead of treating it as raw input. How can I prevent this? I also tried using awk instead of my module but had no success.
These are the lines of interest. Here i purposely insert (hello) to debug bash.
The selection usually looks like "/path/file.txt:1:1 random text here /path/file2.txt:1:1 random text here".
I then process it to output something like this:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions