Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ksh compatibility: initial value of $_



"Jun. T" wrote:
> diff --git a/configure.ac b/configure.ac
> index e6ced85d9..d33ea6945 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1,4 +1,4 @@
> -dnl
> +dnexe

Is that part of the patch intentional?

> +[for zsh_cv_proc_self_exe in /proc/self/exe /proc/curproc/exe \
> +                             /proc/curproc/file /proc/self/path/a.out no; do
> +   readlink $zsh_cv_proc_self_exe >/dev/null && break

Given that you're ignoring the output, test -L is likely more portable
in this case. Specifically it would work on Solaris 10 which doesn't
have readlink (but does have /proc/self/path/a.out). test -L is covered
by the POSIX standard while readlink isn't.

Oliver




Messages sorted by: Reverse Date, Date, Thread, Author