zsh-workers
 help / color / mirror / code / Atom feed
From: Thorsten Meinecke <kaefer@aglaia.aball.DE>
To: zsh-workers@math.gatech.edu
Subject: Here-doc glitch, and null commands
Date: Thu, 27 Feb 1997 17:55:02 +0100 (MET)	[thread overview]
Message-ID: <m0w096l-000060C@aglaia.aball.DE> (raw)

Hello there,
this is as of zsh-3.0.3-test4.

Here-documents inside command/process substitution won't behave
when they contain an unmatched single or double quote.  Complains
about "parse error near `$(<<__END__'.", and when entered inter-
actively, one is caught in `cmdsubst>'.  Example:

echo $(<<__END__
Doesn't work.
__END__)


Now that I'm thinking about it, `<<' in command position is a null
command.  Why isn't this too, but a parse error?

< <<__END__
Feed this to $NULLCMD.
__END__


And while I'm at it: to get sh/ksh-like behaviour, invoke as sh/ksh
or set NULLCMD to `:'.  In order to flag errors, more in csh's
spirit, one have to explicitly unset NULLCMD.  Built-in emulate
can't help, it doesn't change special parameters.

It's a mess, but all of this can be found in the documention.

Except that it doesn't mention that NULLCMD will be set to `:'
after invocation as sh/ksh.  Hence, wouldn't NULLCMD fit better in
as a special parameter "automatically set by the shell", which can
be assigned to, or something?

Regards,
--Thorsten


             reply	other threads:[~1997-02-27 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-27 16:55 Thorsten Meinecke [this message]
1997-02-28  7:16 ` Andrej Borsenkow

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=m0w096l-000060C@aglaia.aball.DE \
    --to=kaefer@aglaia.aball.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).