Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
Re: [SLE] Executable exists but bash says it doesn't
On Wednesday 16 May 2001 4:45 am, you wrote:
> I'm trying to understand what's going on here:
>
> pwa@suillus:/usr/local/TeX/bin/i386-linux > l tex
> -rwxrwxr-x 1 tex wheel 224012 May 15 22:40 tex*
>
> pwa@suillus:/usr/local/TeX/bin/i386-linux > which tex
> /usr/local/TeX/bin/i386-linux/tex
> pwa@suillus:/usr/local/TeX/bin/i386-linux > pwd
> /usr/local/TeX/bin/i386-linux
> pwa@suillus:/usr/local/TeX/bin/i386-linux > tex
> bash: /usr/local/TeX/bin/i386-linux/tex: No such file or
> directory
> pwa@suillus:/usr/local/TeX/bin/i386-linux >
>
> The file "tex" apparently exists and is executable by
> anyone, yet bash says that there's no such file or
> directory. I've verified that "tex" is on the path, as
> shown above. Can anyone explain what I'm missing?

Maybe that file is actually a script with an incorrect path in the she-bang
line?

< Previous Next >
Follow Ups
References