<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div></div>
<div>https://github.com/Krush206/tcsh/commit/70eec821e7965cfa728277e00d12a174829abc82<br>
</div>
<div>This should do to prevent history substitution. Only problem is that adds a new backslash for ! characters.</div>
<div></div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><br>
<div><span style="color: var(--textPrimary);">https://github.com/Krush206/tcsh/commit/93f08ae2b63073ba57125bbb2be375e7c78cdaa5</span></div>
</div>
<div>
<div>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().</div>
<div><br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><br>
</div>
<div>
<div dir="ltr">
<div>Is there any possibility/interest in adding an 'interactive_comments" option for tcsh like is in bash?</div>
<div><br>
</div>
<div>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:
<br>
</div>
<blockquote class="x_x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div><span style="font-family:monospace">mkdir foobar   # pick any name<br>
</span></div>
<div><span style="font-family:monospace">cd foobar      <br>
</span></div>
<div><span style="font-family:monospace">ln -s ../bletch/bin/* ./    # include bletch commands</span><br>
</div>
</blockquote>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>-WRSomsky <br>
</div>
</div>
</div>
</div>
</body>
</html>