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

Re: getting PID of current shell process




> i need to have a way to get the pid of the current shell process but there
> doesn't seem to be a way to do this easily eg no $PID shell variable.
> Is there a reason for this and could you please add it if possible?
> the $PPID doesn't help me at all.

$$ evaluates to the pid of the current shell


Pista



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