I'm using Linux glibc 2.3.2 with bash. I installed 7z
as a symlink as documented in README. However the
plugins are not found since arguments is only "7z"
that is not found in cwd.
This patch first sees if arguments is absolute path,
and if not it'll see the "_" environment variable as
set by bash. As last resort it goes more Linux specific
and uses /proc/self/exe.
To see that all cases work, I tested this with
$ strace -eexecve,readlink /usr/local/bin/7z l rar.rar
$ strace -eexecve,readlink strace env
_=/usr/local/bin/7z 7z l rar.rar
$ strace -eexecve,readlink env -u_ 7z l rar.rar
strace does not set "_" so simply "strace 7z" fails as
"_" still points to strace! I think this is ok.