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

Re: Anyone familiar with auto-fu.zsh project?



On Wed, 13 Jun 2018 04:17:07 -0500
dana <dana@xxxxxxx> wrote:
> On 13 Jun 2018, at 03:28, Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >Wonder why ":" is needed, to gettpid be not the last command.  
> 
> Presumably because zsh optimises out the fork() for the last command.
> 
> Anyway i don't actually think you should use that, lol. If you really
> don't have zsh/system you should be able to use
> ${${:-/proc/self}:A:t} on Linux (and NetBSD and Solaris). I bet that
> covers 99% of users — i doubt many people are using static zsh on
> Macs for example.

If you can really find a zsh distribution on a desktop system that
has /proc/self but doesn't bother packaging zsh/system, the drinks
are on me.

pws




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