[Bug 509128] Re: Inconsistent output from Bourne Shell "type" command

l0b0 victor.engmark at gmail.com
Sat Oct 22 11:46:37 UTC 2011


@Jilles: The mention of "Bourne Shell" was in error, because I didn't
know at the time that /bin/sh was Dash.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dash in Ubuntu.
https://bugs.launchpad.net/bugs/509128

Title:
  Inconsistent output from Bourne Shell "type" command

Status in “dash” package in Ubuntu:
  Confirmed

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 at 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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/509128/+subscriptions




More information about the foundations-bugs mailing list