[Users] Cancel startup from password dialog

H.Merijn Brand h.m.brand at xs4all.nl
Mon Oct 24 08:19:58 CEST 2016


On Sun, 23 Oct 2016 23:49:25 +0200, Johan Vromans
<jvromans at squirrel.nl> wrote:

> On Sun, 23 Oct 2016 16:49:50 +0100
> Dave Howorth <dave at howorth.org.uk> wrote:
> 
> > > If your ps supports BSD syntax, yes.    
> > 
> > This is a strange observation. BSD syntax is normally taken to mean
> > options written without a '-' character in front, like ps aux.
> > ...
> > So in neither case is the comment appropriate AFAICT. Fortunately, the
> > version of ps used by linux does use -C to mean "Select by command
> > name".  
> 
> Well, my ps (Fedora 23) reports:
> 
>   $ ps -C foo
>   error: unsupported option (BSD syntax)
> 
> Even though it is clearly in the docs:
> 
>        -C cmdlist
>               Select by command name.  This selects the processes whose
>               executable name is given in cmdlist.

Some ps binaries written in the POSIX times added these options
conditionally by environment variables. (see Andrej's answer too)

Some enabled these new options by defining $UNIX95 to any value

$ env UNIX95="" ps -C boo

*might* work completely different:

HP-UX 11.23pa2$ ps -C boo
ps: illegal option -- C
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]

HP-UX 11.23pa2$ env UNIX95="" ps -C boo
  PID TTY          TIME CMD

That is a binary from over 11 years old:

/usr/bin/ps:
        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
         ps.c $Date: 2005/05/30 03:42:36 $Revision: r11.23/4 PATCH_11.23 (PHCO_32475)
         $Revision: @(#) ps R11.23_BL2005_0530_2 PATCH_11.23 PHCO_32475

        /usr/bin/ps:
     $Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
     $Date: 2005/05/30 03:42:36 $

> Puzzling,
> 	Johan

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.25   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20161024/5effd0c6/attachment.sig>


More information about the Users mailing list