Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2007 12:27:29 GMT
From:      Diego Bravo <diegobravoestrada@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/115830: type bourne shell built-in
Message-ID:  <200708261227.l7QCRTMk076704@www.freebsd.org>
Resent-Message-ID: <200708261230.l7QCU1db045846@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         115830
>Category:       bin
>Synopsis:       type bourne shell built-in
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 26 12:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708261227.l7QCRTMk076704>