On 20Aug2013 09:01, Uwe Rangs <uwe.ra...@fernuni-hagen.de> wrote:
| Ah, I see. Thank you!

Please don't top post. Thanks.

| On 2013-08-20 05:39:56 +0000, Steven D'Aprano said:
| >alias python1.5='env -u PYTHONSTARTUP python1.5'

I should point out that -u is a GNU env feature. It is not portable,
and in particular OSX "env" does not have it.

A shell function can do the same though:

  py20() {
    ( unset PYTHONSTARTUP
      exec python2.0 ${1+"$@"}
    )
  }

I've said py20 instead of python2.0 primarily because bash is a
bit... picky about function names and rejected the ".".

Cheers,
-- 
Cameron Simpson <c...@zip.com.au>

But pessimism IS realism!       - D.L.Bahr
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to