Forum .LRN Q&A: Re: slash and tcl

Collapse
7: Re: slash and tcl (response to 1)
Posted by Andrew Grumet on
I have occasionally run into a problem where multi-line commands with correct-looking syntax simply don't work.  In these cases the file had been editing on a Windows system introducing Windows linebreaks, which are different from Unix linebreaks in some way that just happens to break Tcl's multi-line parsing.

If you suspect this could be a factor, you have two options: a) put everything on one line; b) remove windows linebreaks using Emacs (C-x RET F undecided-unix) or some other means.

Collapse
8: Re: slash and tcl (response to 7)
Posted by Douillard David on
I'm afraid it's that.
I downloaded the files under Windows with Wincvs.
Collapse
9: Re: slash and tcl (response to 8)
Posted by Tilmann Singer on
Some other means to convert the file to unix line breaks would be the command fromdos - many distributions have it installed by default.

Another reason for the error might be that the backslash is not the last character on the line, e.g. when you have another space behind it.