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

Pierre HABOUZIT wrote:
> severity 414478 grave
> thanks
> 
>> On Mon, Mar 12, 2007 at 12:49:25AM +0100, Pierre Habouzit wrote:
>>> Package: dtc
>>> Severity: grave
>>> Justification: renders package unusable
>>>
>>>
>>>   in the debian_config script you can find oddities like:
>>>
>>>     if [ ""$conf_use_nated_vhosts = "true" -o ""$conf_use_nated_vhosts = 
>>> "yes" ] ; then 
>>>
>>>   or
>>>
>>>     if [ ""$RET = "true" -o ""$RET = "yes" ] ; then 
>>>
>>>   Please learn proper quoting in sh scripting. sh(1) could be a good
>>> start.
>>   Ok, I read too fast here, and was confused. The code is correct, it's
>> just _so_ unusual that I first thought it was a bug.
>>
>>   please rather use "$foo" than ""$foo or $foo"" it's _really_ hard to
>> read, and do remember code is written to be read too ;)
> 
> 
>   I'm on crack, I remember why it does not works:
> 
>   ""$foo is not the same as "$foo" if $foo as spaces in it. Here you
> take variables from debconf, and it's possible that the user put spaces
> in it, for many of the cases. Hence ""$foo will fail miserably with some
> "unable to find `bar'"-like messages.
> 
>   it make the installation fail, hence it's RC.
> 
>   Please do fix your quoting. Also consider that you sometimes forget to
> quote some tests and if $foo is empty [ $foo -eq 2 ] will fail as well
> because [ will miss an argument before -eq.
> 
> 
>   re-raising accordingly.

You can de-raise then, because if you have a variable that has ONLY the
value of true or false, then there is no problem. You can see that I'm
doing it only in a boolean. Anyway, I'm changing it, as you wont be the
only one to say it's "unusual"... :)

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9Ntvl4M9yZjvmkkRArtHAKDIdlJZS2V/OajimPUqnvzcgM+EnQCfe5HS
RN+szsXhiia6tVl1Q/YB7mA=
=Gilw
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to