http://lists.debian.org/debian-python/2010/11/msg00045.html * Stefan Fritsch <sf@sfritsch.de>, 2007-12-06, 22:53:
The above regexp by itself will give a false positive result for constructs like: if [ -n "$LD_LIBRARY_PATH" ]; then export LD_LIBRARY_PATH=$WINELIB:$LD_LIBRARY_PATH else export LD_LIBRARY_PATH=$WINELIB fi
Another class of false-positives with naïve regex approach is: export LD_LIBRARY_PATH=/path/to/something:$LD_LIBRARY_PATH cd /path/to/something/else -- Jakub Wilk