Re: Linux's interpretation of trailing '/'

Miquel van Smoorenburg (miquels@cistron.nl)
15 Dec 1998 17:29:32 +0100


In article <cistron.XFMail.981215121826.simon@koala.ie>,
Simon Kenyon <simon@koala.ie> wrote:
>On 15-Dec-98 Jamie Lokier wrote:
>> Well, I find the Linux behaviour rather useful.
>> `find /usr/src/linux/' lists the latest kernel source files,
>> while find /usr/src/linux' lists the name of a symbolic link.
>
>that's because open on "" is the same as open on "."

Under *BSD, yes. Under Linux, no.

% cat ""
cat: : No such file or directory
% cat .
cat: .: Is a directory

Mike.

-- 
Indifference will certainly be the downfall of mankind, but who cares?

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/