lkml.org 
[lkml]   [1999]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOuch, who's been writing "if [ ! "$CONFIG_FOO" = "n" ]" ?
I'm fighting with xconfig again and I noticed some lines like this
have been showing up in the kernel source:

# drivers/net/Config.in
if [ ! "$CONFIG_PPP" = "n" ]; then

Please don't do this. In bash, the operator precedence is undocumented,
and I hate to rely on undocumented behaviour. In TCL, the operator
precedence is documented: ! is higher precedence than =, just like in C.

I'd really like to deploy my new bison-based parser, but until then,
I have to do conservative things like throw "!" out of Config Language.

Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.023 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site