mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Fix missing -- filter in string replace call
This commit is contained in:
@@ -15,7 +15,7 @@ function __fish_concat_completions -d "Generate completions that are specified a
|
||||
# `read` call in between () to capture the output because that breaks its connection to stdin.
|
||||
while read -l line;
|
||||
echo $line;
|
||||
end | string match -er '.' | string match -rv -- $filter | string replace -r '^' -- (string replace -rf '^(.+),.*$' '$1,' $token; or echo "")
|
||||
end | string match -er '.' | string match -rv -- $filter | string replace -r '^' -- (string replace -rf -- '^(.+),.*$' '$1,' $token; or echo "")
|
||||
|
||||
return
|
||||
# Verified compatible with bsd awk and gnu awk
|
||||
|
||||
Reference in New Issue
Block a user