.pyc files...

Jp Calderone exarkun at divmod.com
Sun Nov 14 18:53:53 EST 2004


On Mon, 15 Nov 2004 00:38:20 +0100, Irmen de Jong <irmen at -nospam-remove-this-xs4all.nl> wrote:
>Mike Meyer wrote:
> > "Simon John" <simoninusa2001 at yahoo.co.uk> writes:
> >>or with backticks:  rm -rf `find . -name '*.pyc'`
> > Better with $(: rm -rf $(find . -name '*.pyc').
> 
> What's the difference? I've never seen (read: used)
> the $(...) syntax...

  $() is a bash-ism.  `` is POSIX sh.  I'm not aware of any other significant differences (quoting rules vary, etc).  In particular, I can't think of any differences which would make $() preferable.

  Jp



More information about the Python-list mailing list