-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[responding only to the bugreport, not d-k]

On Sat, 15 Oct 2005 08:57:31 +0200
Sven Luther <[EMAIL PROTECTED]> wrote:

> Hey, i didn't know the mkinitrd wrapper was shell, or i would have
> done it myself. I wonder why you need the :
> 
>   if [ "$supported_host_version" != "" ]
> 
> though, since by default, it will test for an empty string, so this
> seems redundant, but maybe there is some obscure shell thingies i am
> not aware of.

Don't remember if some shells treat the constructs differently or it is
only a matter of coding style, but I always avoid

  if [ "$supported_host_version" ]

and instead use either

  if [ "$supported_host_version" != "" ]

or (preferrably)

  if [ -n "$supported_host_version" ]


 - Jonas


- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDUNA3n7DbMsAkQLgRAnUyAJwIjXNdfk9sIj+CCcF+UsG+OPNGxwCeKGk4
1ySZ2h1VbO1bCF8vXRA9OqE=
=Po43
-----END PGP SIGNATURE-----

Reply via email to