History

Subject: [PATCH] tags.sh: Add missing quotes

When $remove_structs is empty a test for empty string will turn into test -n with no arguments meaning true. Add quotes so an empty string is tested and so that make cscope works again.

Stephen Boyd committed 14 years ago

Commit 0eb043d1 parent dd775ae1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/tags.sh+1−1
@@ -254,6 +254,6 @@ case "$1" in · 253 unmodified lines
254esac254esac
255 255
256# Remove structure forward declarations.256# Remove structure forward declarations.
257if [ -n $remove_structs ]; then257if [ -n "$remove_structs" ]; then
258 LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1258 LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1
259fi259fi