gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gpsinfo


From: Gary E. Miller
Subject: Re: gpsinfo
Date: Tue, 16 Mar 2021 21:20:17 -0700

Yo Hal!

On Tue, 16 Mar 2021 16:53:15 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

> > New version pushed.  Looks like James figured it out.  
> 
> Looks like you didn't read my message.  You may have fixed something,
> but you didn't put quotes around $UID.

I thought about it, but then realized $UID is always defined.  Except
*BSD is weird...

> [murray@ted ~/gpsd/raw]$ ./clients/gpsdebuginfo | tee foo.log
> + [ '!=' 0 ]
> [: !=: unexpected operator
> + id
> uid=1001(murray) gid=1001(murray) groups=1001(murray),0(wheel)

Even with the quotes, it does not do whaht I want.  JamesB192's idea:

if test $(id -u) != 0; then

Something for Wednesday.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpgmwxMDPLf5.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]