Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Most shells will invoke foo and pass a literal bar.* as the first argument if you run foo bar.* if nothing in the current directory matches bar.*. In bash since 2.something you can shopt -s failglob to prevent this.

    But then the shell will also refuse to let you run foo bar.* baz.* if either bar.* or baz.* fail, when really you probably only wanted it to refuse if both fail. So basically you want the behaviour of shopt -s nullglob when there’s more than one glob.

    Or at least, you want that behaviour most of the time.

    Defaults: It’s Tricky To Get Them Right.