[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Globbing
> Is this for `cultural compatibility' or do people want it this way?
i want it this way:
+ it matches my instict
+ it's rc (and sh) compatible
+ it's easy to understand and explain
> I
> don't like it, because it leads to disturbing error messages when I
> say rm *.^(aux dvi log toc idx ind) for example.
use rm -f.
> But since we will
> probably never agree on what should happen, maybe I might suggest
> adding a hook? Yes, another feeping creature. The hook might be
> called with any unmatched wildcard containing names as arguments, and
> whatever it returns will be substituted in its place. Then the
> current behaviour can be gotten by assigning $&result to this hook; I
> might wish to assign {result ()} to it; and others might want the hook
> to throw an error (even I might want that behaviour locally, in some
> functions) or send mail to their Congress Creature.
opinions? i'd prefer not to add this
%glob-failure
hook, but i guess i could live with it. (and it would appease those
former csh-users who want *: no match. somebody wanted ignoreeof,
maybe somebody wants nomatch? i don't know. sheesh, we never should
have advertised customizability.)
i have no strong feelings on the matter.
paul
- Follow-Ups:
- Re: Globbing
- From: Scott Schwartz <schwartz@groucho.cs.psu.edu>
- Re: Globbing
- From: friedman@gnu.ai.mit.edu (Noah Friedman)