Changes between Initial Version and Version 1 of Ticket #1467
- Timestamp:
- 05/30/18 21:41:55 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1467
-
Property
Priority
changed from
major
tominor
-
Property
Summary
changed from
Hash-prefixed numbers cause confusing error message in scripts
toBare hashes cause confusing error message in scripts
-
Property
Priority
changed from
-
Ticket #1467 – Description
initial v1 1 As pointed out by erkin on IRC, when you run a script with `-ss` which contains something like `# 0`, the error message you get is confusingif you don't know about csi's history references (especially given that this is a script, not manual input).1 As pointed out by erkin on IRC, when you run a script with `-ss` which contains something like `#`, the error message you get is confusing, especially if you don't know about csi's history references (especially given that this is a script, not manual input). 2 2 3 3 The error is: … … 7 7 }}} 8 8 9 If this is the result of running a long script that somewhere contains `# 0`, this doesn't point to the location of the issue either.9 If this is the result of running a long script that somewhere contains `#` (or just `#0`), this doesn't point to the location of the issue either. 10 10 11 11 Proposed possible improvements: 12 12 13 - Add the `#` to the error message so it's clear that this syntax is causing it, even if you don't know what a "history index" is. 13 - Add the `#` to the error message so it's clear that this syntax is causing it, even if you don't know what a "history index" is. But note that just adding it is not going to be enough, since just `#` also triggers this error. 14 - Give a better/different error when reading a bare `#` 14 15 - Include the line number (part of a larger issue in evaluated script code, and the hardest to implement) 15 16 - Disable history syntax when running with `-s` or `-ss`.