Re: [PATCH] don't record empty IFS scan regions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martijn Dekker <martijn@xxxxxxxx> wrote:
> 
> evalvar() records empty expansion results (varlen == 0) as string
> regions that need to be scanned for IFS characters. This is pointless,
> because there is nothing to split.
> 
> This patch fixes the bug that, given no positional parameters, unquoted
> $@ and $* incorrectly generate one empty field (they should generate no
> fields). Apparently that was a side effect of the above.

Please attach a reproducer as I cannot reproduce this problem.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux