Re: [PATCH 1/1] tags.sh: fix string equality testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/10/08, Jiri Slaby <jirislaby@xxxxxxxxx> wrote:

> Test of string equality in shells is =, not C-like ==.
> -if [ $KBUILD_VERBOSE == 1 ]; then
> +if [ $KBUILD_VERBOSE = 1 ]; then

also it is better to use quotes, because `[' gets $IFS'ed parameters otherwise:

|> +if [ "$KBUILD_VERBOSE" = 1 ]; then

-- 
sed 'sed && sh + olecom = love'  <<  ''
-o--=O`C
 #oo'L O
<___=E M
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux