fix a small bug in the parse-config script
[openwrt-10.03/.git] / package / base-files / default / usr / lib / parse-config.awk
index cf1b09c58cdfa972b88a0a23b8ecf7939d28b750..9ce32b74ffbaa79180fb213212b9f86d9b30ad3b 100644 (file)
@@ -27,7 +27,7 @@ $1 == "@else" {
        else noprint = 1
 }
 
-($1 !~ /^@/) && (noprint != 1) {
+($1 !~ /^@[a-zA-Z]/) && (noprint != 1) {
        n=split(line "@@", a, /@@/)
        for (i=1; i<=n; i++) {
                if ((i % 2) == 1) printf a[i]