Web lists-archives.com

Re: notify-send script messed up my environment

On Wed 08 May 2019 at 08:33:05 (-0400), Greg Wooledge wrote:
> On Tue, May 07, 2019 at 11:23:46PM +0200, Esteban L wrote:
> > pid=$(pgrep -u $username nautilus)
> This may produce more than one value.

> The script you've got is not designed to handle the case where pgrep finds
> more than one process and reports more than one PID.  It has to be
> rewritten to handle that.

… and for none. What's nautilus? :)