You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue can be reproduced regardless of third party customizations are added or not.
Whenever an abbreviation ending with a single quote is added via fish_config UI, the single quote at the end gets stripped. Even if the command is wrapped with one more layer of single quotes.
So setting the word _first to awk '{print $1'} actually executes the following command:
abbr --add'_first''awk \'{print $1}'
Also setting the work _first with another layer of single quotes: 'awk '{print $1'}', results in the execution of the same command:
abbr --add'_first''awk \'{print $1}'
The text was updated successfully, but these errors were encountered:
Note: Your reproducer has what I assume is a typo:
awk'{print $1'}
works - there's no ' at the end, so there's nothing to "strip".
However I can still reproduce this with
awk'{print $1}'
which also makes much more sense.
Also:
Fish version 3.1.0
fish 3.1.0 was already outdated by the time Ubuntu 20.04 was released, and that's not even the current LTS anymore (the current LTS 22.04, incidentally also ships an already outdated fish).
It is 3930 released commits behind, out of a total 15379 released commits - that's 25% of all commits ever made to fish (and released)!
Please update if you want to report any further issues.
Fish version 3.1.0
Ubuntu 20.04
xterm-256color
This issue can be reproduced regardless of third party customizations are added or not.
Whenever an abbreviation ending with a single quote is added via fish_config UI, the single quote at the end gets stripped. Even if the command is wrapped with one more layer of single quotes.
So setting the word
_first
toawk '{print $1'}
actually executes the following command:Also setting the work
_first
with another layer of single quotes:'awk '{print $1'}'
, results in the execution of the same command:The text was updated successfully, but these errors were encountered: