Not a good shell programmer =) > Similarly, [ 'python -m argparse' ] will always be true, because the > string is nonempty.
Turns out python -m argparse prints nothing if argparse is installed on the system which is why this worked in my testing. Fragile though, I'll change it to the code you have below. > I think you want this: > > if test $HAVE_PYTHON = yes; then > if python -m argparse 2>/dev/null; then > : > else > PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat > export PYTHONPATH > fi > fi > > The other changes are because ! and export var=value aren't portable. > _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
