some fixes for static analysis findings; fix for brace expansion being too greedy checking sequence expressions; fix for strip targets when cross-compiling

This commit is contained in:
Chet Ramey
2025-05-19 09:10:57 -04:00
parent 535a8150b6
commit 870ad4c92b
21 changed files with 819 additions and 39 deletions
+4
View File
@@ -74,6 +74,10 @@ z x v t r p n l j h f d b
{a..1} {a..2} {a..3} {a..4} {c..1} {c..2} {c..3} {c..4}
{1..4} {2..4} {3..4}
{6..7} {6..8} {6..9}
a ../a.cfg
a.. /a.cfg
a..b /a.cfg
a b../a.cfg
{abcde.f}
X{..a}Z
0{1..}2
+6
View File
@@ -141,6 +141,12 @@ echo {{a,c}..{1..4}}
echo {{1,2,3}..4}
echo {6..{7,8,9}}
# these are not valid sequence expressions but are valid brace expansions
echo {a,../a.cfg}
echo {a..,/a.cfg}
echo {a..b,/a.cfg}
echo {a,b../a.cfg}
# these are all invalid brace expansions
echo {abcde.f}