the file with the empty name "" (was: csh core dumping)

Tad Guy tadguy at cs.odu.edu
Sat Dec 24 09:08:51 AEST 1988


>greim at sbsvax.UUCP (Michael Greim) writes:
>\... When you issue an
>\open or exec with an empty string, you succeed and get the first file in your
>\current directory, which almost certainly is '.', the directory itself.

In article <1847 at piraat.cs.vu.nl>, maart at cs (Maarten Litmaath) writes:
>The file `-csh' is a symbolic link to /bin/csh.
>	% ls -a | head -3
>	-csh
>	.
>	..

This is misleading.  Unless told otherwise, ls sorts its output.  You
should use ``ls -f'' to see the true directory order:

	% ls -f
	.
	..
	-csh		(maybe...)

-- 
Tad Guy         <tadguy at cs.odu.edu>     Old Dominion University, Norfolk, VA



More information about the Comp.unix.questions mailing list