From 1285957703c97ef8b34fb49981f80511e57552de Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 17 Jan 2021 10:31:23 +0100 Subject: [PATCH] docs: Add glob example to variable overrides And clarify that it'll still run the same things --- doc_src/index.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc_src/index.rst b/doc_src/index.rst index c7f08f281..d06fca58a 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -979,6 +979,13 @@ Multiple elements can be given in a :ref:`brace expansion`:: # Call bash with a reasonable default path. PATH={/usr,}/{s,}bin bash +Or with a :ref:`glob `:: + + # Run vlc on all mp3 files in the current directory - if no file exists it will still be run with no arguments + mp3s=*.mp3 vlc $mp3s + +Unlike other shells, this does *not* inhibit any lookup (aliases or similar). Calling a command after setting a variable override will result in the exact same command being run. + This syntax is supported since fish 3.1. .. _variables-universal: