From nobody@FreeBSD.org  Sun Aug 26 12:27:29 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D6CD516A417
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2007 12:27:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C31A713C478
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2007 12:27:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7QCRT0p076706
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2007 12:27:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7QCRTMk076704;
	Sun, 26 Aug 2007 12:27:29 GMT
	(envelope-from nobody)
Message-Id: <200708261227.l7QCRTMk076704@www.freebsd.org>
Date: Sun, 26 Aug 2007 12:27:29 GMT
From: Diego Bravo <diegobravoestrada@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: type bourne shell built-in
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115830
>Category:       bin
>Synopsis:       type bourne shell built-in
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    stefanf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 26 12:30:01 GMT 2007
>Closed-Date:    Sat Sep 29 06:47:54 GMT 2007
>Last-Modified:  Sat Sep 29 06:47:54 GMT 2007
>Originator:     Diego Bravo
>Release:        FreeBSD 6.2-RELEASE
>Organization:
AmericaTI
>Environment:
FreeBSD bsd.americati.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The type built-in must exit with error if the given argument is not an accesible executable or built-in. It fails if a bad path is given.

Note: Using bourne shell, not bash:

$ ps
  PID  TT  STAT      TIME COMMAND
  702  v0  S      0:00.09 -sh (sh)
  707  v0  S+     0:00.03 script
  708  p0  Ss     0:00.04 /bin/sh -i
  709  p0  R+     0:00.00 ps

>How-To-Repeat:
$ type xxxx
xxxx: not found
$ echo $?
127
$ type yyyyy/zzzzzz
yyyyy/zzzzzz: No such file or directory
$ echo $?
0
>Fix:


>Release-Note:
>Audit-Trail:

From: "Craig Rodrigues" <rodrigc@crodrigues.org>
To: Diego Bravo <diegobravoestrada@hotmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/115830: type bourne shell built-in
Date: Sun, 26 Aug 2007 12:13:55 -0400

 Hi,
 
 It looks like this is fixed in CURRENT:
 
 
 $ uname -r -s
 FreeBSD 7.0-CURRENT
 $ type xxxx
 xxxx: Not found
 $ echo $?
 127
 $ type yyyyy/zzzzzz
 yyyyy/zzzzzz: No such file or directory
 $ echo $?
 127
 
 -- 
 Craig Rodrigues
 rodrigc@crodrigues.org
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sun Aug 26 17:53:06 UTC 2007 
State-Changed-Why:  
Craig mentions that this might be fixed in -CURRENT, can you please 
comment on that? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115830 

From: "Diego Bravo Estrada" <diegobravoestrada@hotmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/115830: type bourne shell built in
Date: Sun, 26 Aug 2007 17:28:55 -0400

 Hello,
 
 1 Currently I don't have 7.0 installed, but when booted from the image 
 7.0-CURRENT-200706-i386-bootonly.iso, the "fix/hollographic" shell behaved
 correctly as Craig pointed (I *assume* it is /bin/sh)
 
 2 The same test with the 6.2-RELEASE-i386-bootonly.iso, shows the original 
 problem:
 
 $ type yyyyy/zzzzzz
 yyyyy/zzzzzz: No such file or directory
 $ echo $?
 0
 
 So it seems the 7.0 solved this issue, but the 6.2 has it yet.
 
 regards,
 
 Diego
 
 BTW , the 7.0-CURRENT-200706-i386-bootonly.iso dosen't let to do a remote 
 installation (I think the packages are not in Internet.) I don't understand 
 its purpouse.
 
 _________________________________________________________________
 Consigue aqu las mejores y mas recientes ofertas de trabajo EE.UU. 
 http://latino.msn.com/empleos
 
State-Changed-From-To: feedback->patched 
State-Changed-By: rodrigc 
State-Changed-When: Thu Aug 30 04:31:15 UTC 2007 
State-Changed-Why:  
Fixed in CURRENT, most likely by one of stefanf's many patches to /bin/sh. 
Stefan, can the fixes which address this PR be merged to RELENG_6? 


Responsible-Changed-From-To: freebsd-bugs->stefanf 
Responsible-Changed-By: rodrigc 
Responsible-Changed-When: Thu Aug 30 04:31:15 UTC 2007 
Responsible-Changed-Why:  
Fixed in CURRENT, most likely by one of stefanf's many patches to /bin/sh. 
Stefan, can the fixes which address this PR be merged to RELENG_6? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115830 
State-Changed-From-To: patched->closed 
State-Changed-By: stefanf 
State-Changed-When: Sat Sep 29 06:46:19 UTC 2007 
State-Changed-Why:  
The fix was already merged to RELENG_6 and will be included in release 6.3. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115830 
>Unformatted:
