> Hi Yoann,

Hi Ludo,

> I had not understood that.  I guess the patch below fixes it, I’ll push
> t shortly.

> Thanks,
> Ludo’.

Look great, but IMO, your addition, "(passwd:name (getpwuid (getuid))))",
should be the only way to get the username since $USER and $LOGNAME
could be overridden or unset.

I don't always do it in my own scripts, but it is better to do not relay on
env vars when you want something to be bulletproof.

Since there is "passwd:dir pw", $HOME could be replaced with it too.

Thanks,
Yoann


Reply via email to