Re: [PATCH] Supplant the "while case ... break ;; esac" idiom From: David Symonds <hidden> Date: 2016-06-15 22:43:36 On 24/09/2007, David Kastrup [off-list ref] wrote:Mike Hommey [off-list ref] writes: quotedOn Sun, Sep 23, 2007 at 10:42:08PM +0200, David Kastrup wrote:quoted-while case $# in 0) break ;; esac +while test $# != 0 Wouldn't -ne be better ? Why? Because -ne does a numeric comparison, != does a string comparison, and it's a numeric comparison happening, semantically speaking. Dave.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help