Artifacts Associated With Ticket 3151675fffffffff
Ticket change [aca7bdc2ba] (rid 101335) by daapp on 2011-01-05 07:09:01:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Bug with parameterswith tcl 8.5.8/8.6b1 with command read, this sample works, but it's incorrect: % read stdin nonewline If second parameter of read in "nonewline", than read works, but this is bug, second parameter must be number of characters to read. if replace nonewline with other word, then % read stdin xzy bad argument "xzy": should be "nonewline" Command "puts" interprep parameters the same way: % puts stdout hello nonewline hello% % puts stdout hello xyz bad argument "xyz": should be "nonewline"
- foundin initialized to: "obsolete: 8.5.9"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "daapp"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to:
Commands "read/puts" incorrectly interpret parameters.
- type initialized to: "Bug"
Ticket change [796abb1328] (rid 90125) by dkf on 2011-01-05 16:18:05:
- assignee changed to: "andreas_kupries"
- icomment:
It's ugly legacy code to support very old scripts. Use the forms described on the manual page (read ?-nonewline? channelId / read channelId numChars / puts ?-nonewline? ?channelId? string) and ignore these nasty things that really should have been deleted long ago. Don't know that we can actually squelch this yet. :-(
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "24. Channel Commands"
- username: "dkf"
Ticket change [62eb11521a] (rid 92489) by nijtmans on 2011-01-06 17:45:35:
- icomment:
At least, what I would propose is change the horrible error-message to the nornal Tcl_WrongNumArgs. Then the legacy form is not exposed any more in the error message. Proposed patch attached.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Add attachment "3151675.patch" [b26c898d38] (rid 98331) by nijtmans on 2011-01-06 17:46:54.
Ticket change [6550958663] (rid 102521) by nijtmans on 2011-01-06 17:46:55:
- icomment:
File Added - 397809: 3151675.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [97c35d303b] (rid 110493) by nijtmans on 2011-01-17 18:31:06:
- assignee changed to: "nijtmans"
- icomment:
Checked in in HEAD with some more improvements: - Don't output a WrongNumArgs when actually the number of arguments is correct. - if TCL_MAJOR_VERSION < 9, so we will not forget to remove this for Tcl9 ;-) - First check for integer, then for "nonewline", so there is no performance peanalty any more. I see no reason to remove this before Tcl9
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [1d77ef0b26] (rid 90815) by nijtmans on 2011-01-17 19:39:10:
- closedate changed to: "2011-01-17T12:39:10"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 backported to 8.5. Closing, because at least the output-message now correctly indicates what the command syntax should be. Legacy form still works, but this is no longer visible in any error-message.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"