From inwap@shell3.ba.best.com Mon Sep 20 23:02:32 1999
Return-Path: <inwap@shell3.ba.best.com>
Received: from shell3.ba.best.com (shell3.ba.best.com [206.184.139.134])
	by hub.freebsd.org (Postfix) with ESMTP id E91B714D51
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Sep 1999 23:02:31 -0700 (PDT)
	(envelope-from inwap@shell3.ba.best.com)
Received: (from inwap@localhost)
	by shell3.ba.best.com (8.9.3/8.9.2/best.sh) id XAA17496;
	Mon, 20 Sep 1999 23:01:48 -0700 (PDT)
Message-Id: <199909210601.XAA17496@shell3.ba.best.com>
Date: Mon, 20 Sep 1999 23:01:48 -0700 (PDT)
From: inwap@best.com
Sender: inwap@shell3.ba.best.com
Reply-To: inwap@best.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Failure with "ps tpt"
X-Send-Pr-Version: 3.2
X-GNATS-Notify: ru

>Number:         13870
>Category:       bin
>Synopsis:       "ps tpt" produces "ps: /dev/ttypT: No such file or directory"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 03:30:04 PDT 1999
>Closed-Date:    Wed Sep 26 02:31:23 PDT 2001
>Last-Modified:  Wed Sep 26 02:31:51 PDT 2001
>Originator:     Joe Smith
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
Chez Inwap
>Environment:

	Standard env.

>Description:

	The command "ps tpt" fails for /dev/ttypt only.

>How-To-Repeat:

	Note that "pr" through "pv" work with the exception of "pt".

(home/inwap) inwap@shell3> ls /dev/ttyp?
/dev/ttyp0      /dev/ttyp7      /dev/ttype      /dev/ttypl      /dev/ttyps
/dev/ttyp1      /dev/ttyp8      /dev/ttypf      /dev/ttypm      /dev/ttypt
/dev/ttyp2      /dev/ttyp9      /dev/ttypg      /dev/ttypn      /dev/ttypu
/dev/ttyp3      /dev/ttypa      /dev/ttyph      /dev/ttypo      /dev/ttypv
/dev/ttyp4      /dev/ttypb      /dev/ttypi      /dev/ttypp
/dev/ttyp5      /dev/ttypc      /dev/ttypj      /dev/ttypq
/dev/ttyp6      /dev/ttypd      /dev/ttypk      /dev/ttypr
(home/inwap) inwap@shell3> ps tpr
  PID  TT  STAT      TIME COMMAND
12090  pr  Is+    0:00.07 -tcsh (tcsh)
(home/inwap) inwap@shell3> ps tps
  PID  TT  STAT      TIME COMMAND
13953  ps  Is+    0:00.11 -tcsh (tcsh)
(home/inwap) inwap@shell3> ps tpt
ps: /dev/ttypT: No such file or directory
(home/inwap) inwap@shell3> ps tpu
  PID  TT  STAT      TIME COMMAND
 3263  pu  Is     0:00.07 -csh (csh)
(home/inwap) inwap@shell3> ps tpv
  PID  TT  STAT      TIME COMMAND
(home/inwap) inwap@shell3> uname -a
FreeBSD shell3.ba.best.com 2.2.8-STABLE FreeBSD 2.2.8-STABLE #104: Sat Sep  4 16:02:26 PDT 1999     dima@tick.best.net:/src/src/sys/compile/BEST  i386

>Fix:
	
	No workaround.  Problem exists in 3.3 kernel as well.


>Release-Note:
>Audit-Trail:

From: "Danny J. Zerkel" <dzerkel@columbus.rr.com>
To: freebsd-gnats-submit@freebsd.org, inwap@best.com
Cc:  
Subject: Re: bin/13870: "ps tpt" produces "ps: /dev/ttypT: No such file or 
 directory"
Date: Sun, 07 Nov 1999 13:08:20 -0500

 Well, the workaround is to use:
 
 ps -tpt
 
 The kuldge_oldps_options(), blindly replaces the trailing 't' with 'T'.
 It should probably check for an
 eat-all-remaining-characters type option first.  But, that is the nature
 of kludges.
 
 -- Danny J. Zerkel
 dzerkel@columbus.rr.com
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sat Jun 16 19:32:10 PDT 2001 
State-Changed-Why:  
Fixing this would mean breaking compatibility.  Considering that simply 
prepending a dash--which you should be doing anyway--solves the problem, 
I don't think it's worth it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13870 
State-Changed-From-To: closed->feedback 
State-Changed-By: ru 
State-Changed-When: Wed Aug 15 23:32:00 PDT 2001 
State-Changed-Why:  
Fixed in 5.0-CURRENT, bin/ps/ps.c,v 1.41. 


Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: ru 
Responsible-Changed-When: Wed Aug 15 23:32:00 PDT 2001 
Responsible-Changed-Why:  
MFC reminder. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13870 
State-Changed-From-To: feedback->closed 
State-Changed-By: brian 
State-Changed-When: Wed Sep 26 02:31:23 PDT 2001 
State-Changed-Why:  
Applied to -stable 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13870 
>Unformatted:
