In the next release of xmlsh (ETA end of may), there is a significant improvement to error diagnostics. This effects normal function errors, as well as the -v and -x options.
All command errors that cause a usage or exception, as well as -v and -x output
produces file/line diagnostics.
Example
$ echo -foo
[stdin line: 1]
echo: Unknown option: foo
In scripts this includes the filename of the script and line number.
This output is also in -v and -x output (preceeding the function)
Example:
$ set -v -x
$ echo foo
- [stdin line: 7]
echo foo
+ [stdin line: 7]
echo foo
foo
No comments:
Post a Comment
Due to comment spam, moderation is turned on. I will approve all non-spam comments.