Some more precautionary uses of set --local

This commit is contained in:
Johannes Altmanninger
2020-05-15 21:34:48 +02:00
parent 62f1ed0b5e
commit ec2371fb79
11 changed files with 21 additions and 21 deletions

View File

@@ -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