mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue