Using for in one-liner

Paul Watson pwatson at redlinepy.com
Mon Aug 15 13:41:37 EDT 2005


BranoZ wrote:
> In "man python"
> "Here command may contain multiple statements separated by
> newlines.  Leading whitespace is significant in Python statements!"
> 
> In "man bash" search for \n (/\\n)
> Frankly, I know bash for 10 years, but this has surprised me, too.
> 
> BranoZ

Using a '$' before the string works in the ksh that is part of FC4. 
However, it does not work on the pdksh that is in FC3 and Cygwin.  It 
also does not work on AIX ksh.

$ print $'now'
$now



More information about the Python-list mailing list