From owner-freebsd-arch@FreeBSD.ORG Sat Jun 5 04:03:47 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61AF116A4CE for ; Sat, 5 Jun 2004 04:03:47 -0700 (PDT) Received: from huva.hittite.isp.9tel.net (huva.hittite.isp.9tel.net [62.62.156.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id D37CA43D3F for ; Sat, 5 Jun 2004 04:03:46 -0700 (PDT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (unknown [84.97.145.139]) by huva.hittite.isp.9tel.net (Postfix) with SMTP id C08D1B8908 for ; Thu, 3 Jun 2004 22:15:03 +0200 (CEST) Message-ID: <018001c449a7$3a5f80c0$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: Date: Thu, 3 Jun 2004 22:13:24 +0200 Organization: ACME MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: Change to "kludge option processing" in /bin/ps X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 11:03:47 -0000 why this message does not reach -arch ? don't know if Garance reeived it also ? "Garance A Drosihn" wrote: > At 5:08 PM +0200 5/31/04, Cyrille Lefevre wrote: > > > >before to commit new changes, think about how to fix the > >following ones :) > > > ># ps -p ,, > > PID TT STAT TIME COMMAND > > 0 ?? ZW 0:00.00 (sshd) > ># psx -p ,, > >psx: no process id specified > > The above issue was pretty trivial to fix, and I have committed a > change which should fix it. ok, let's try another issue : # ps -G " nobody " PID TT STAT TIME COMMAND 75483 con- S 0:10.97 /usr/local/sbin/junkbuster configfile # ps -G ,nobody, ps: Invalid (zero-length) group name ps: Invalid (zero-length) group name # ps -G , ps: Invalid (zero-length) group name ps: Invalid (zero-length) group name instead of : # ps -G " nobody " PID TT STAT TIME COMMAND 75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile # ps -G ,nobody, PID TT STAT TIME COMMAND 75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile # ps -G , psx: no group name or id specified why do you make a difference while parsing commas and spaces ? in other words, ignore empty values (which may be generated by a shell script, so, don't warn), except if all values are empty. Cyrille Lefevre. -- home: mailto:cyrille.lefevre@laposte.net