Re: patching binaries at install time without breaking rpm -V?

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

 



On 12/21/05, Michael Jennings <mej@xxxxxxxxx> wrote:
> If you would like to propose a portable method of obtaining the path
> of the invoked binary 100% of the time (i.e., argv[0] and searching
> $PATH are OUT), I'd like to see it.

The idiom
dn0=`dirname $0`
SOURCEDIR=`cd $dn0; pwd`
seems to reliably do it for shell scripts.
I've never quite understood how...

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux