Skip to main content
3 events
when toggle format what by license comment
Aug 18, 2022 at 14:33 comment added Stéphane Chazelas No. Here, you want several things, so as always, use an array. files=('a b' c); ls -d -- $files in rc / es / zsh. Or set files 'a b' c; ls -d -- $files in fish. Or files=('a b' c); ls -d -- "${files[@]}" in zsh / bash / ksh93 / yash / mksh. In POSIX sh, you could use split+glob (leaving a parameter expansion unquoted) after having tuned it: use files='a b:c'; set -o noglob; ls -d -- $files for instance.
Oct 1, 2019 at 18:35 review First posts
Oct 1, 2019 at 19:14
Oct 1, 2019 at 18:30 history answered Mattias Wadman CC BY-SA 4.0