[buug] ln -sf

Erik Shirokoff shiro at uclink4.berkeley.edu
Thu Jul 29 16:06:12 PDT 2004


Hello -

I don't quite understand.  Is the problem that you are or that you aren't getting the text below?

I seem to get exactly the results shown, using ls (coreutils) 5.2.1 on slackware-10.

- Erik


On Thu, Jul 29, 2004 at 03:34:03PM -0700, johnd wrote:
> is the force option of ln supposed to work on sym links?
> 
> I can't get it to like below.  Am I doing something wrong?
> 
> --------------------------------------------
> john at ldev:~/foodelme$ touch file
> john at ldev:~/foodelme$ touch file1
> john at ldev:~/foodelme$ ln -s file link
> john at ldev:~/foodelme$ ls -l
> total 1
> -rw-r--r--  1 john users 0 2004-07-29 15:26 file
> -rw-r--r--  1 john users 0 2004-07-29 15:26 file1
> lrwxrwxrwx  1 john users 4 2004-07-29 15:26 link -> file
> john at ldev:~/foodelme$ ln -fs file1 file
> john at ldev:~/foodelme$ ls -l
> total 1
> lrwxrwxrwx  1 john users 5 2004-07-29 15:27 file -> file1
> -rw-r--r--  1 john users 0 2004-07-29 15:26 file1
> lrwxrwxrwx  1 john users 4 2004-07-29 15:26 link -> file
> john at ldev:~/foodelme$ 
> 
> -- 
> Microsoft is not the answer.
> Microsoft is the question.
> NO (or Linux) is the answer.
> 
> http://www.livingwithoutmicrosoft.org/
> http://linuxshop.ru/linuxbegin/win-lin-soft-en/table.shtml
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug
> 



More information about the buug mailing list