POSIX Shell Programming Challenge - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
(12-04-2021, 02:35 PM)mort Wrote: I don't know whether this is technically correct according to POSIX or not, but it doesn't work in ZSH. In ZSH, "test/.*" is an error if there are no hidden files in the directory, and "test/*" is an error if there are no non-hidden files in the directory. POSIX says: Quote:If the pattern does not match any existing filenames or pathnames, the pattern string shall be left unchanged. So I guess it’s fine. :) (I wish POSIX would demand Bash’s “nullglob” option. That’s what I want 99.999999% of the time.) |
|||