Re: [Cooker] ln cannot be forced?
On Mon, 2003-11-10 at 21:09, Leon Brooks wrote: > On Tue, 11 Nov 2003 10:37, Quel Qun wrote: > > This is weird: > > > # ls -l linux > > linux -> linux-2.4.22-21mdk > > # ln -sf linux-2.6.0-0.test9.4mdk linux > > # ls -l linux > > linux -> linux-2.4.22-21mdk > > At this point, an "ls -l linux/" or "ls -l linux-2.4.22-21mdk" would > have shown you a symlink named "linux-2.6.0-0.test9.4mdk" within that > directory. > Makes sense. Thanks a lot to you and Luca for these answers. -- Quel Qun <[EMAIL PROTECTED]>
Re: [Cooker] ln cannot be forced?
On Mon, Nov 10, 2003 at 06:37:16PM -0800, Quel Qun wrote: This is weird: # ls -l linux linux -> linux-2.4.22-21mdk # ln -sf linux-2.6.0-0.test9.4mdk linux # ls -l linux linux -> linux-2.4.22-21mdk # rm -f linux && ln -s linux-2.6.0-0.test9.4mdk linux # ls -l linux linux -> linux-2.6.0-0.test9.4mdk Am I missing anything here? I tried the --force option with the same results. yes # man ls -n, --no-dereference treat destination that is a symlink to a directory as if it were a normal file so ln -lnf would work -- Luca Berra -- [EMAIL PROTECTED] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN XAGAINST HTML MAIL / \
Re: [Cooker] ln cannot be forced?
On Tue, 11 Nov 2003 10:37, Quel Qun wrote: > This is weird: > # ls -l linux > linux -> linux-2.4.22-21mdk > # ln -sf linux-2.6.0-0.test9.4mdk linux > # ls -l linux > linux -> linux-2.4.22-21mdk At this point, an "ls -l linux/" or "ls -l linux-2.4.22-21mdk" would have shown you a symlink named "linux-2.6.0-0.test9.4mdk" within that directory. Cheers; Leon