[buug] ln -sf

John de la Garza john at jjdev.com
Thu Jul 29 20:22:54 PDT 2004


you know what, you're right, I meant to do something different...

which was ln -s file link, then ln -sf file1 link and have not create 
the new link, but it does...

I screwed up

I thought for sure ln -sf was messed up,  and even showed it to someone 
else and they 'confirmed' it.  We were both wrong, it seems to work 
fine.


On Jul 29, 2004, at 6:15 PM, Erik Shirokoff wrote:

>
> Hi John,
>
> Sorry for the confusion, but I still don't see the problem.  (But I 
> have been awake for somewhat longer than one really ought to be, so 
> it's probably my fault.)
>
> In what you posted, it looks to me like "ln -fs" worked fine.  file 
> was a real file, and after running "ln -sf file1 file" it was replaced 
> with a symlink to file1.
>
> Should something different be happening?
>
>
> On Thu, Jul 29, 2004 at 04:31:44PM -0700, johnd wrote:
>>
>> I expect ln -sf to create the new link
>>
>> Remove existing destination files and replace it with the new one
>>
>> I am getting the text below(I got it and pasted it in...)
>>
>> I meant I can't get it like below to mean below is my showing that I 
>> can't get
>> ln -sf to work not I can't get it to be like below.
>>
>>
>> On Thu, Jul 29, 2004 at 04:06:12PM -0700, Erik Shirokoff wrote:
>>>
>>> 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
>>>>
>>> _______________________________________________
>>> Buug mailing list
>>> Buug at weak.org
>>> http://www.weak.org/mailman/listinfo/buug
>>
>> -- 
>> 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
>>
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug




More information about the buug mailing list