From: Matti Andreas Kähäri Subject: Re: $!() gives a list of files Date: Thu, 16 Apr 2026 06:51:33 +0200
>[cut] >> Description: >> The sequence !() seems to generate a list of files in the current >> directory, possibly leading to unintended execution >Only if you have the extglob shell option enabled, which is not the >default. With that shell option enabled, the globbing pattern >!(something) matches any file that does not match "something". >This is not a bug in the shell, but in your code. In fact, it is no more or less a bug than is the recent code-sharing post about a new loadable built-in (rev). Both were simply posted to the wrong group. Both should have been posted to help-bash (which needs the traffic). ================================================================================= Please do not send me replies to my posts on the list. I always read the replies via the web archive, so CC'ing to me is unnecessary. When responding to my posts, please try to refrain from giving bureaucratic answers. If you have nothing useful to say, then just click Next and go on.
