[Bug 1194800] Re: cd flibbleflob/.. works when it shouldn't
Launchpad Bug Tracker
1194800 at bugs.launchpad.net
Sat Jun 29 20:20:57 UTC 2013
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: dash (Ubuntu)
Status: New => Confirmed
--
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/1194800
Title:
cd flibbleflob/.. works when it shouldn't
Status in “dash” package in Ubuntu:
Confirmed
Bug description:
Consider the script:
cd flibbleflob/.. 2> /dev/null || echo splat
(Assuming that the flibbleflob directory does not exist) the 'cd'
should fail and so "splat" should be sent to stdout. And on bash it
is:
bash -c 'cd flibbleflob/.. 2> /dev/null || echo splat'
splat
But with dash, no output:
dash -c 'cd flibbleflob/.. 2> /dev/null || echo splat'
disappoint.
drj$ lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04
drj$ apt-cache policy dash
dash:
Installed: 0.5.7-3ubuntu1
Candidate: 0.5.7-3ubuntu1
Version table:
*** 0.5.7-3ubuntu1 0
500 http://gb.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/1194800/+subscriptions
More information about the foundations-bugs
mailing list