cd flibbleflob/.. works when it shouldn't
Bug #1194800 reported by
David Jones
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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://
100 /var/lib/
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.