tar: Plug $line var leak
This commit is contained in:
parent
055d1ae59f
commit
d049481952
@ -135,6 +135,7 @@ __gnu_tar_parse_help()
|
|||||||
# Hack: parse --warning keywords from tar's error output
|
# Hack: parse --warning keywords from tar's error output
|
||||||
__gtar_parse_warnings()
|
__gtar_parse_warnings()
|
||||||
{
|
{
|
||||||
|
local line
|
||||||
while IFS= read line; do
|
while IFS= read line; do
|
||||||
if [[ $line =~ ^[[:blank:]]*-[[:blank:]]*[\`\']([a-zA-Z0-9-]+)\'$ ]]; then
|
if [[ $line =~ ^[[:blank:]]*-[[:blank:]]*[\`\']([a-zA-Z0-9-]+)\'$ ]]; then
|
||||||
echo "${BASH_REMATCH[1]} no-${BASH_REMATCH[1]}"
|
echo "${BASH_REMATCH[1]} no-${BASH_REMATCH[1]}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user