From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org, zsh-workers@zsh.org
Subject: Re: Comment (# char) behavior in the sub-shell
Date: Sat, 9 Sep 2017 15:46:16 -0700 [thread overview]
Message-ID: <170909154616.ZM24323@torch.brasslantern.com> (raw)
In-Reply-To: <CAAR+aWfD1ifEe2JGxJAkgA5Rmpr6nmV9Ta9Y6yvW23-oe4hkYg@mail.gmail.com>
On Sep 9, 7:33pm, Stanislav Seletskiy wrote:
}
} It seems for whatever reason everything after `#` in the sub-shell is ignored.
}
} I've tried to disable INTERACTIVE_COMMENTS option without any success.
A subshell is not an interactive shell, so INTERACTIVE_COMMENTS does not
make any difference here, except that it delays treating "#" as a comment
until after the subshell has begun. In bash for example the "#" would
comment out the closing paren and your expression wouldn't work at all.
Also, because NO_INTERACTIVE_COMMENTS is the default, propagating it from
the command line into subshells would break many of the same things that
you are concerned about being broken by histchars='!^'.
--
Barton E. Schaefer
next prev parent reply other threads:[~2017-09-09 22:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 16:33 Stanislav Seletskiy
2017-09-09 22:46 ` Bart Schaefer [this message]
2017-09-10 20:06 ` Peter Stephenson
2017-09-10 21:24 ` Stanislav Seletskiy
2017-09-10 22:27 ` Bart Schaefer
2017-09-11 8:49 ` Peter Stephenson
2017-09-11 9:42 ` Peter Stephenson
2017-09-20 11:54 ` Stanislav Seletskiy
2017-09-20 17:16 ` Bart Schaefer
2017-09-21 4:43 ` Stanislav Seletskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170909154616.ZM24323@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).