[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command line processing order



This bit me the other day:

; ls
a	b	c	d
; cat * > foo
cat: input foo is output

The wildcard expansion is happening *after* the I/O redirection. The Bourne
shell and Byron's rc both do the wildcard expansion first, and I think this
is the right way to go.

Thanks,

Arnold