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
When i try to paste text into fish i got the following
commandline: --insert-smart: unknown option
/usr/share/fish/functions/__fish_paste.fish (line 46):
commandline --insert-smart -- $data
^
in function '__fish_paste' with arguments 'copy doesnt work'
(Type 'help commandline' for related documentation)
Happend after i updated fish shell to the latest version.
Temporary fix is just remove --insert-smart inside /usr/share/fish/functions/__fish_paste.fish manually
fish --version fish, version 4.1.0
echo $version 4.0.8
Linux archlinux 6.16.8-arch3-1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000 x86_64 GNU/Linux
fish --version fish, version 4.1.0
echo $version 4.0.8
your fish 4.0.8 install was overritten and now the running shell is using new files from fish 4.1.0.
You need to restart after upgrades. We currently don't test this scenario.
Embedded builds won't have this problem.
I did a reboot but the issue persists, maybe it's a different one? Should I create a new issue? For me, I'm pasting into a read that is in a fish script (my nnn plugins are fish scripts).
Using fish 4.1.1
commandline: Can not set commandline in non-interactive mode
/usr/share/fish/functions/__fish_paste.fish (line 1):
in command substitution
called on line 1 of file /usr/share/fish/functions/__fish_paste.fish
in command substitution
called on line 17 of file /usr/share/fish/functions/__fish_paste.fish
in function '__fish_paste' with arguments '00:13:43.423'
called on line 1 of file ~/.config/nnn/plugins/ffmpeg
(Type 'help commandline' for related documentation)
__fish_tokenizer_state: expected >= 1 arguments; got 0
commandline: Can not set commandline in non-interactive mode
/usr/share/fish/functions/__fish_paste.fish (line 1):
in command substitution
called on line 40 of file /usr/share/fish/functions/__fish_paste.fish
in function '__fish_paste' with arguments '00:13:43.423'
called on line 1 of file ~/.config/nnn/plugins/ffmpeg
(Type 'help commandline' for related documentation)
commandline: Can not set commandline in non-interactive mode
/usr/share/fish/functions/__fish_paste.fish (line 47):
commandline --insert-smart -- $data
^
in function '__fish_paste' with arguments '00:13:43.423'
called on line 1 of file ~/.config/nnn/plugins/ffmpeg
(Type 'help commandline' for related documentation)
Activity
krobelus commentedon Sep 29, 2025
kiloutyg commentedon Sep 30, 2025
Hello!
Same issue, same solution!
A clean reboot and that's it!
Thanks for the answer!
krobelus commentedon Sep 30, 2025
no need to restart the whole OS, restarting all instances of fish is enough :)
Yutsuten commentedon Oct 6, 2025
I did a reboot but the issue persists, maybe it's a different one? Should I create a new issue? For me, I'm pasting into a
readthat is in a fish script (mynnnplugins are fish scripts).Using fish 4.1.1
commandline: Can not set commandline in non-interactive mode /usr/share/fish/functions/__fish_paste.fish (line 1): in command substitution called on line 1 of file /usr/share/fish/functions/__fish_paste.fish in command substitution called on line 17 of file /usr/share/fish/functions/__fish_paste.fish in function '__fish_paste' with arguments '00:13:43.423' called on line 1 of file ~/.config/nnn/plugins/ffmpeg (Type 'help commandline' for related documentation) __fish_tokenizer_state: expected >= 1 arguments; got 0 commandline: Can not set commandline in non-interactive mode /usr/share/fish/functions/__fish_paste.fish (line 1): in command substitution called on line 40 of file /usr/share/fish/functions/__fish_paste.fish in function '__fish_paste' with arguments '00:13:43.423' called on line 1 of file ~/.config/nnn/plugins/ffmpeg (Type 'help commandline' for related documentation) commandline: Can not set commandline in non-interactive mode /usr/share/fish/functions/__fish_paste.fish (line 47): commandline --insert-smart -- $data ^ in function '__fish_paste' with arguments '00:13:43.423' called on line 1 of file ~/.config/nnn/plugins/ffmpeg (Type 'help commandline' for related documentation)krobelus commentedon Oct 6, 2025
@Yutsuten thanks, that was another regression, I'll push a fix today for the imminent 4.1.2 patch release
Fix regression on paste in non-interactive read
Fix regression on paste in non-interactive read
seowalex commentedon Nov 23, 2025
I am still seeing this in fish 4.2.0.
krobelus commentedon Nov 23, 2025
which issue? if it's the first one, then restart fish. Future upgrades won't have this issue
seowalex commentedon Nov 23, 2025
Ah, I thought I had killed my tmux session but I had not (and so was using the old version). Apologies for the confusion.
geekscrapy commentedon Apr 7, 2026
Can confirm this is an issue on the following still:
❯ commandline: --insert-smart: unknown option /usr/share/fish/functions/__fish_paste.fish (line 47): commandline --insert-smart -- $data ^ in function '__fish_paste' with arguments '<pasted filename>' (Type 'help commandline' for related documentation) ❯ fish -v fish, version 4.2.1