gpsd-dev
[Top][All Lists]
Advanced

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

Re: Two patches for ppscheck that fix behavior of -x, --seconds option


From: Gary E. Miller
Subject: Re: Two patches for ppscheck that fix behavior of -x, --seconds option
Date: Fri, 17 May 2024 13:22:59 -0700

Yo James!

On Fri, 17 May 2024 13:13:25 -0700
James Browning <jamesb.fe80@gmail.com> wrote:

> On Fri, 17 May 2024, at 12:39 PM, Gary E. Miller <gem@rellim.com>
> wrote:
> >
> > Yo James!
> >
> > Lost me.  Your point?
> >
> > On Fri, 17 May 2024 08:00:00 -0700
> > James Browning <jamesb.fe80@gmail.com> wrote:
> >  
> > > OT: File under taking enough rope...
> > >
> > > ```console
> > > $ buildtmp/clients/ppscheck "" /dev/pps0
> > > ERROR: can't run with no device specified  
> :::snip:::
> 
> Having triggered the bug, I deserved it.

Huh?

> It's an interesting bug, easy to trigger intentionally, and it's
> probably nearly impossible to trigger accidentally.

If that is a bug, then pretty much every program has it:

    $ file ""
    cannot open `' (No such file or directory)

> If ppscheck encounters an empty argument before an acceptable
> device path, it throws that. Ideally, it would have been written
> differently. It is probably very low on the list of things to fix.

You would have to "fix" most command line programs.  A bad command line
option is a user error, not an error wit the called program.

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: pgpLAF41p2iyE.pgp
Description: OpenPGP digital signature


reply via email to

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