Replies: 1 comment
-
If you want to have your globs expand to nothing, do what the docs say: Use them with set -l files *.mp3 *.ogg
ls $files Maybe make it Or files={*.mp3,*.ogg} ls $files for short. We used to have just a warning, and that's the worst of both worlds. You get a warning you don't want and So we chose between not doing anything and erroring out, and we picked erroring out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ls *mp3 *ogg *wav *flac
Current behavior: If no "ogg" found, then nothing will be listed. Yes, it's in the docs.
But, in any other system,
*
means: "zero or more". Also in fish (the "4 exceptions": for, set, etc.)What's the idea behind stopping execution altogether?
The top example should just show the files that do exist, not complain about what's missing.
Possible outcome:
Otherwise, what's the workaround for listing multiple patterns files?
Isn't fish meant to be easier and more simple?
(on a personal tone: fish is nice, some things are annoying - but this ^^ one is crossing the line)
Beta Was this translation helpful? Give feedback.
All reactions