The command:
make foo -f $*
Has different functionality when called from the command line versus when it is called from a python script as follows:
import os
os.system(make foo -f $*)
As stated here: http://tldp.org/LDP/abs/html/internalvariables.html#APPREF $* in a bat file is basically all the positional parameters seen as a single word.
Python seems to be parsing it as simply "$*". Is there anyway to get around this and replicate the same functionality?
I realise I can write a .bat script and call that with python but I was hoping for something more eloquent.