[Baypiggies] Is there an equivalent to perl -S for python?
drewp at bigasterisk.com
Tue Jan 26 07:33:52 CET 2010
On 01/25/2010 01:11 PM, William Deegan wrote:
> perl -S xyz.pl will find the xyz.pl in
> the PATH and run it.
> Is there an equivalent flag for python?
> Or do I need to do:
> x=`which xyz.py`
> python $x
zsh has a shell shortcut for `which foo`, letting you do this:
Now the -S version is the long way :)
zsh users can also do "less =xyz.py", etc.
More information about the Baypiggies