mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:45:42 +08:00
Suggest string split -n for separating on spaces.
At least on some versions/systems, pkg-config outputs a trailing space. Since the usually-desired behavior isn't to have a blank argument, recommend using `string split -n` instead of `string split`. Fixes #6836. [ci skip]
This commit is contained in:
parent
9459958c61
commit
3cf1de1b7f
@ -374,7 +374,7 @@ Unlike other shells, fish does not split command substitutions on any whitespace
|
||||
|
||||
> printf '%s\n' (pkg-config --libs gio-2.0)
|
||||
-lgio-2.0 -lgobject-2.0 -lglib-2.0
|
||||
> printf '%s\n' (pkg-config --libs gio-2.0 | string split " ")
|
||||
> printf '%s\n' (pkg-config --libs gio-2.0 | string split -n " ")
|
||||
-lgio-2.0
|
||||
-lgobject-2.0
|
||||
-lglib-2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user