Public bug reported: 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 ** Affects: dash (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1194800 Title: cd flibbleflob/.. works when it shouldn't To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/1194800/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs