Drag-Drop Files containing Single Quotes leads to unmatched single quote
Thanks for filing an issue! Please answer the questions below so I can help you.
-
iTerm2 version: 3.3.12
-
OS version: 10.15.5
-
Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
-
Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog debuglog.txt
-
Attach a screen capture video if it would make the reproduction steps clearer. https://asciinema.org/a/pVYdEVoBGmNyY99zN2UXt45Yt Note: I dragged and dropped the filename in
-
Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample No
-
Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs No
-
Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot No
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem:
- touch ~/"a'b"
- Drag and drop the file into iterm2
- Hit enter, notice the unmatched quote
What happened: The following appeared in the terminal: '/Users/zwimer/Desktop/a'b' Notice you cannot escape single quotes within single quotes, so ' fails, leading to an unmatched quote. This happens in both zsh and bash.
What should have happened: /Users/zwimer/Desktop/a'b or "/Users/zwimer/Desktop/a'b"