Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Initial line continuation char ignored in interactive mode

Closed / Fixed1775878fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-08-16 20:29:59
Starting with (at least Tcl 8.5a5), tclsh
[email protected]plain2007-08-17 03:35:02
Logged In: NO 

Pressed "Enter" too quickly

Starting with at least Tclh 8.5a5, interactive mode seems to ignore an initial line continuation character.

% puts \
\
%
Just puts "\"

The expected behavior was a prompt for the rest of the input

% puts \
"some string"
some string
%

Other uses appear to work properly:

% puts "some \
string"
some string
%

% puts \\\n
\

%
dgpplain2007-08-17 03:39:38
Logged In: YES 
user_id=80530
Originator: NO


2004-03-29 commit did this, which was to
fix 833150.
dgpplain2007-08-22 03:25:24
File Added - 242200: 1775878.patch

Logged In: YES 
user_id=80530
Originator: NO


Here's the patch.
File Added: 1775878.patch
dgpplain2007-08-22 03:42:12
Logged In: YES 
user_id=80530
Originator: NO


fixed in HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: