[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATH and $0

From: Dave Rutherford
Subject: Re: PATH and $0
Date: Tue, 11 Jul 2006 20:19:34 -0400

On 7/11/06, Cai Qian <address@hidden> wrote:
I want its full pathname using 'dirname', but it will give me
unexpected result on some Linux or Bash versions.

Well, 'dirname' certainly won't do what you want, but I'm sorry,
I can't think of a way to get what you need.  (It would be relatively
easy in 'c'.)  Even /proc/self/* doesn't contain the script's full
pathname.  Perhaps somebody else knows a better way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]