Subject: Re: namei changes...
To: None <current-users@NetBSD.ORG>
From: Patrick Welche <prlw1@cam.ac.uk>
List: current-users
Date: 05/10/1997 16:43:05
Jukka Marin wrote:
On Sat, May 10, 1997 at 11:25:26AM -0400, John F. Woods wrote:
> > For an archive that I maintain, I have been in the habit of testing
> > for a directory that might or might not exist with
> > 
> >       cp file /archive/path/directory/
> > 
> > the idea being that if "/archive/path/directory" exists as a directory,
> > I want to copy "file" into it, otherwise it should fail.
> > Unfortunately, it now succeeds, copying "file" to
> > "/archive/path/directory" (as a regular file).
> 
> jmarin@kyyhky omat/ekg %(58)ll /tmp/melmac
> ls: /tmp/melmac: No such file or directory
> jmarin@kyyhky omat/ekg %(59)cp p.c /tmp/melmac/
> jmarin@kyyhky omat/ekg %(60)ll /tmp/melmac
> -rw-------  1 jmarin  wheel  15373 May 10 18:29 /tmp/melmac
> jmarin@kyyhky omat/ekg %(61)uname -a
>NetBSD kyyhky 1.2 NetBSD 1.2 (KYYHKY) #6: Fri May  9 21:26:01 EET DST 1997     root@kyyhky:/store/src/sys/arch/i386/
> compile/KYYHKY i386

and the same for slowaris:

% ls -l /tmp/foobar
/tmp/foobar: No such file or directory
% cp this.gnu /tmp/foobar
% !ls
ls -l /tmp/foobar
-rw-------   1 prlw1    prlw1        389 May 10 16:39 /tmp/foobar
% uname -a
SunOS taurus.cus.cam.ac.uk 5.5 Generic_103093-06 sun4d sparc SUNW,SPARCserver-1000

Hello everyone!

Patrick