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

Re: Subshells and parameters



On 2006-05-17 08:42:54 -0700, Bart Schaefer wrote:
> Example:
> 
>     getpid() { typeset -g PID=$(exec $ZSH_NAME -fc 'print $PPID') }

However, if $PATH has changed, this won't necessarily find the
executable.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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