dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* exec command and error checking
@ 2014-01-28 12:16 Марк Коренберг
  2014-01-28 13:17 ` Guido Berhoerster
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Марк Коренберг @ 2014-01-28 12:16 UTC (permalink / raw)
  To: dash

$ dpkg -l | fgrep dash
ii  dash                                   0.5.7-2ubuntu2
                POSIX-compliant shell

$ exec 9<no_such_file && echo TEST
dash: 1: cannot open no_such_file: No such file

$ exec 9<no_such_file || echo TEST
dash: 2: cannot open no_such_file: No such file

So, I cannot test this operation without using $?

in BASH this works as expected (even in sh mode)

-- 
Segmentation fault

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-29  3:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-28 12:16 exec command and error checking Марк Коренберг
2014-01-28 13:17 ` Guido Berhoerster
2014-01-28 15:32   ` Paul Gilmartin
2014-01-28 21:59   ` Jilles Tjoelker
2014-01-28 23:18     ` Guido Berhoerster
2014-01-29  3:19     ` Chet Ramey
2014-01-28 13:40 ` Seb
2014-01-28 14:05   ` Guido Berhoerster
2014-01-28 14:42     ` Seb
2014-01-28 14:52 ` Paul Gilmartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).