mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Fix missing -- filter in string replace
call
This commit is contained in:
parent
114856e1d9
commit
9045b251b0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user