POSIX Shell Programming Challenge - Programming On Unix
Users browsing this thread: 3 Guest(s)
|
|||
(12-04-2021, 11:47 AM)s0kx Wrote: Came up with something really horrible looking before remembering that wsl of course uses bash, which makes me disqualifed. Like mort's example, this also breaks with empty directories. I will certainly be returning to this challenge later.. It also fails when there is no hidden file. Quoting from The UNIX Programming Environment: Quote:What happens if no files match the pattern? The shell, rather than complaining (as it did in early versions), passes the string on as though it had been quoted. … |
|||