cat arguments and wild-cards

Tom Roberts tjr at ihnet.UUCP
Thu Apr 19 03:04:23 AEST 1984


The shell is actually expanding the wild-card (*), NOT cat.

Note that if the shell expanded

	cat <x*

it would be possible to have multiple filenames match the "x*", AND THESE
EXTRA FILES WOULD BECOME ARGUMENTS TO CAT. This could easily cause very
strange behavior (for programs other than cat). The designer(s) of the
shell decided to simply NOT expand any wild-cards for stream-redirections.

	Tom Roberts
	ihnp4!ihnet!tjr



More information about the Comp.unix mailing list