[GRASS-dev] Python script test

Michael Barton michael.barton at asu.edu
Mon Jul 21 19:20:51 EDT 2008


On Jul 21, 2008, at 4:13 PM, Glynn Clements wrote:

>
> Michael Barton wrote:
>
>> I just found out that .profile (and I suppose other shell
>> configuration scripts) won't recognize backslashes as a line
>> continuation in PATH or PYTHONPATH statements.
>
> Are you quoting the value? Within single quotes, all characters are
> treated literally, including backslash and newline characters. Other
> than that, backslash-newline is always discarded.
>
> Also, ensure that you don't have CRLF line terminators. CR is treated
> as whitespace, and trailing whitespace is normally harmless, but
> backslash-newline is only recognised if the newline immediately
> follows the backslash, without any intervening whitespace.

These are double quoted.

AFAICT, I just have CR's. Note that backslashes are fine in bash  
scripts for other things. It's just a PATH that is giving me trouble.  
It only reads up to the first backslash.

I'll check into it more.

Michael



More information about the grass-dev mailing list