An odd difference between "cat file" and "cat<file"

matt at UCLA-LOCUS.ARPA matt at UCLA-LOCUS.ARPA
Tue Apr 24 02:10:15 AEST 1984


From:            Matthew J. Weinstein <matt at UCLA-LOCUS.ARPA>

[Running 4.1 BSD]

In Bourne shell, filename expansion is suppressed after "<" and ">".
	$ cat >*
produces a file named `*'.

	$ cat <*
produces `*: cannot open' (providing * doesn't exists)

In Csh, an `ambiguous' message is emitted if more than one file matches
a pattern in a funny place (first token in line or after "<" or ">").

(Results obtained by experimentation, not code examination.)

					- Matt



More information about the Comp.unix mailing list