mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Some more precautionary uses of set --local
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function __fish_append -d "Internal completion function for appending string to the commandline" --argument sep
|
||||
set -e argv[1]
|
||||
set str (commandline -tc | string replace -rf "(.*$sep)[^$sep]*" '$1' | string replace -r -- '--.*=' '')
|
||||
set -l str (commandline -tc | string replace -rf "(.*$sep)[^$sep]*" '$1' | string replace -r -- '--.*=' '')
|
||||
printf "%s\n" "$str"$argv
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user