> For interactive use, an environment variable WARNIFEMPTY or something could
> request warnings (or ERRORIFEMPTY for errors) from the shell if a glob expands
> to nothing; or from commands if a command is run with no files to operate on.
> 
> Or perhaps we could have a different globber that does the right thing,
> such as `{glob *} - that would be okay for scripts, and the status quo is
> tolerable for interactive use.

i'm pretty sure that modal stuff like this would be worse
than the status quo.

> Maybe the regular globbing can't be fixed without breaking stuff - but I don't
> know of any program that does depend on this bogus misfeature,

now who's overstating.  :-)  i highly suggest you implement your
suggestions.  i look forward to seeing a paper or wip at iwp9 in
2010.

- erik

Reply via email to