From 3cf1de1b7f5849882f154de7019ff0860e98cdde Mon Sep 17 00:00:00 2001 From: jneem Date: Mon, 30 Mar 2020 12:17:51 -0500 Subject: [PATCH] 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] --- doc_src/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/tutorial.rst b/doc_src/tutorial.rst index 1b3df09bf..797c1d806 100644 --- a/doc_src/tutorial.rst +++ b/doc_src/tutorial.rst @@ -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