Problem

It’s not a big one, but one I’ve run in to when creating python scripts to dump out commands with comments so others can see what the command does. To avoid the system returning a line every time that the command cannot find the command the following solutions apply.

Solutions

We have two solutions here:

set -k

INTERACTIVE_COMMENTS

Both work well

https://unix.stackexchange.com/questions/33994/zsh-interpret-ignore-commands-beginning-with-as-comments

zsh ignore commands beginning ‘#’
Tagged on:         

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.