Re: `ls` shows file, `bash` says "No such file" ???
Ralf Mardorf wrote, on 05/03/2014 23:11:
> On Sat, 2014-05-03 at 22:46 +0200, Jörg-Volker Peetz wrote:
>> Tom H wrote, on 05/03/2014 15:02:
>>> On Sat, May 3, 2014 at 8:55 AM, Jörg-Volker Peetz <jvpeetz@web.de> wrote:
>>>>
>>>> On my machine /usr/lib/iceweasel/firefox-bin is a link to
>>>> /usr/lib/iceweasel/iceweasel . So maybe on your machine
>>>> /usr/local/share/firefox-3.6.28/firefox-bin is a dangling link.
>>>> What is the output of
>>>>
>>>> $ ls -lF /usr/local/share/firefox-3.6.28/firefox-bin
>>>
>>> The OP's installed an old version of firefox outside of the packaging system!
>>>
>>
>> I read that. But the symptom he describes could be due to a dangling link.
>
> I don't think so, a soft link would show that it's a soft link, it
> doesn't matter, if it's broken or ok. So we are talking about a hard
> link?
>
I thought of the following scenario:
$ touch x
$ ln -s x firefox-bin
$ rm x
Now with this dangling link named firefox-bin try
$ ls firefox-bin
firefox-bin
$ ./firefox-bin
-bash: ./firefox-bin: No such file or directory
That's what the OT described.
Regards,
jvp.
Reply to: