Skip site navigation (1)Skip section navigation (2)
Date:      09 Oct 2001 17:35:03 -0700
From:      swear@blarg.net (Gary W. Swearingen)
To:        Nicolas Rachinsky <list@rachinsky.de>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: cp -i -R
Message-ID:  <t8het8fi2w.et8@localhost.localdomain>
In-Reply-To: <20011009172052.A37340@pc5.abc>
References:  <20011009161204.A22196@pc5.abc> <3.0.5.32.20011009095525.031a30f0@mail.sage-american.com> <20011009172052.A37340@pc5.abc>

next in thread | previous in thread | raw e-mail | index | archive | help
Nicolas Rachinsky <list@rachinsky.de> writes:

> nicolas@pc5 ~> cd test
> nicolas@pc5 ~/test> mkdir target
> nicolas@pc5 ~/test> cp /kernel target
> nicolas@pc5 ~/test> ln -s nonexistent kernel
...
> nicolas@pc5 ~/test> cp -R -i kernel target
> nicolas@pc5 ~/test> cd target
> nicolas@pc5 ~/test/target> ls -l
> total 0
> lrwxr-xr-x  1 nicolas  users  11 Oct  9 17:08 kernel@ -> nonexistent

Then do "cp -i /kernel target" and instead of asking if you want
to clobber "target/kernel", it creates "target/nonexistent"!

Maybe that's old, well-known behaviour, but it sure suprised this
long-time UnX user.  (Similar to my suprise that some commands treat
"dirname" and "dirname/" differently.  I suppose I should try harder to
remember which ones.  And get around to getting that behavior into the
man pages.)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?t8het8fi2w.et8>