aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-07-25 13:49:58 -0500
committerRob Landley <rob@landley.net>2013-07-25 13:49:58 -0500
commit5e56568fa59ada3c516cbf29ee1a64435f4ec4c7 (patch)
tree5c215bc46750754e5af9947893e4617b0115c548
parentfe850691155be9a23cc1480e7afdb77028d87e78 (diff)
downloadtoybox-5e56568fa59ada3c516cbf29ee1a64435f4ec4c7.tar.gz
Don't make a FLAG_ macro for " ", it's a control character, doing so throws the indexes off. Reported by Ashwini Sharma.
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 2a02a722..12a228eb 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -64,7 +64,7 @@ function getflags()
sed -n -e "s/.*TOY($FLX"',[ \t]*"\([^"]*\)"[ \t]*,.*)/\1/' \
-e 't keep;d;:keep' -e 's/^[<>=][0-9]//' -e 's/[?&^]//' \
-e 't keep' -e 's/[><=][0-9][0-9]*//g' -e 's/+.//g' \
- -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@*]//g' "$@" -e 'p'
+ -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@* ]//g' "$@" -e 'p'
}
# Extract global structure definitions and flag definitions from toys/*/*.c