[Tcsh] Interactive comments for tcsh?

M G P tateusg at hotmail.com
Wed Nov 22 22:19:43 UTC 2023


https://github.com/Krush206/tcsh/commit/93f08ae2b63073ba57125bbb2be375e7c78cdaa5
I modified the parser so that # characters are ignored. Unfortunately, history substitution still is parsed, because it's executed before syntax(). History substitution is probably located in sh.lex.c, and the code is executed before syntax().

________________________________

Is there any possibility/interest in adding an 'interactive_comments" option for tcsh like is in bash?

I'm interested because I often make notes of procedures/commands that I want to cat and paste into the terminal to repeat at some point and want to be able to add comments to them.  Stuff like:
mkdir foobar   # pick any name
cd foobar
ln -s ../bletch/bin/* ./    # include bletch commands

I have been using ' ;: ' to introduce comments, but the shell still tries to parse the rest of the line and if there are any quotes, semi-colons, less-thans, or greater-thans, it doesn't work properly

-WRSomsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20231122/cc2d8006/attachment.htm>


More information about the Tcsh mailing list