Inconsistent output from Bourne Shell "type" command
Bug #509128 reported by
Victor Engmark
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: coreutils
I just found that two subsequent calls of "type bash" resulted in two different results. Here's the complete verbatim (anonymized BASH PS1) output from the session:
user@machine:~/path (master)$ sh
$ type foo
foo: not found
$ type bash
bash is /bin/bash
$ type foo
foo: not found
$ echo $1
$ type foo
foo: not found
$ echo $?
127
$ type bash
bash is a tracked alias for /bin/bash
$ type bash
bash is a tracked alias for /bin/bash
$ type foo
foo: not found
$ type service
service is /usr/sbin/service
$ type -t bash
-t: not found
bash is a tracked alias for /bin/bash
$
To post a comment you must log in.
Thank you for opening this bug and helping make Ubuntu better.
I am unsure why you selected 'coreutils' as the target package here; I am tending to assign it to dash, but I want to be sure.
Please:
1. run 'lsb_release -a' ;
2. run 'ls -l /bin/sh'
Please post the output here.
Thank you.
p.s. I can confirm your findings for dash version 0.5.5.1-3ubuntu1 on Lucid.