[GRASS-dev] Python script test
Glynn Clements
glynn at gclements.plus.com
Mon Jul 21 19:13:01 EDT 2008
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.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list