Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Supplant the "while case ... break ;; esac" idiom

From: Miles Bader <hidden>
Date: 2016-06-15 22:43:36

Johannes Schindelin [off-list ref] writes:
quoted
In practice that's not an issue though -- every reasonable shell has 
test as a builtin these days, so the "works when test is not a builtin" 
criteria is really important only for robustness.
AAAAAAAAAAAAAARRRRRGGGHHHHHHHHHHHH!

_Exactly_ the same reasoning can be said about the old code: _every_ 
reasonable shell can grok the code that used to be there!
As has been stated, that's not true.  Some "real" shells don't handle
the old code correctly (and the old code is less readable as well).

AFAIK, the new code works all cases, it's merely very slightly slower in
unusual circumstances.

-Miles

-- 
/\ /\
(^.^)
(")")
*This is the cute kitty virus, please copy this into your sig so it can spread.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help