bug-bash
[Top][All Lists]
Advanced

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

Re: Is there a special variable for the directory where the script is in


From: Bernd Eggink
Subject: Re: Is there a special variable for the directory where the script is in?
Date: Fri, 12 Feb 2010 14:53:39 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Am 12.02.2010 14:38, schrieb Guillaume Outters:
Greg a écrit :

Except that HP-UX 10.20 and HP-UX 11.11 don't have readlink(1).
(Maybe it's added in 11.2x?  I don't know.)

You're right. I must admit I made a concession to some GNU coreutils tools on the platform. 
I once used some ls -l "$SCRIPTS" | sed -e 's/.* ->  //' magic to replace it 
(and it worked two minutes ago on the HP-UX, just like it used to back in the old days).

I once wrote a more generic shell function for this purpose, see:
  http://sudrala.de/en_d/shell-getlink.html

Bernd

--
Bernd Eggink
http://sudrala.de




reply via email to

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