zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: surprise with echo
Date: Fri, 19 Dec 2014 12:21:26 +0100	[thread overview]
Message-ID: <20335.1418988086@thecus.kiddle.eu> (raw)
In-Reply-To: <CABx2=D8EU+uFXizT99ETXMZKScrFAeyEezeV9NgsLe8=Sdv4Bg@mail.gmail.com>

Kurtis Rader wrote:

> It is possible, even likely, I'm missing the point of the RC_EXPAND_PARAM
> emulation option since I've never used the Plan 9 rc shell before today. If

I've never regarded the rc_expand_param and rc_quotes options as being
there to emulate rc. They are merely inspired by rc.

Both are useful features and are worth enabling in an interactive
configuration but don't expect your rc scripts to even come close to
working in zsh. Note in particular that in rc, ^ is a special operator
for joining strings. rc_expand_param doesn't enable support for that.

Incidentally, I have actually used rc for a while because it was the
default shell on the CS department systems at the university I went to.
In terms of syntax and design, it is much better than sh but also about
as functional as sh from an interactive perspective.

> On Thu, Dec 18, 2014 at 7:06 PM, Bart Schaefer <schaefer@brasslantern.com>
> wrote:
> >
> > Only by turning off the option, or by doing e.g. ${@:-''} so that the
> > expansion is the empty string rather than the empty array.

$^^@ will also do the job of disabling the option.

Oliver


  parent reply	other threads:[~2014-12-19 11:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-19  1:24 Ray Andrews
2014-12-19  3:06 ` Bart Schaefer
2014-12-19  3:20   ` Lawrence Velázquez
2014-12-19  6:09     ` Ray Andrews
2014-12-19  6:30       ` Kurtis Rader
2014-12-19 17:54         ` Ray Andrews
2014-12-19  4:14   ` Kurtis Rader
2014-12-19  4:39     ` Lawrence Velázquez
2014-12-19  5:19       ` Kurtis Rader
2014-12-19  6:00         ` Lawrence Velázquez
2014-12-19  5:57     ` Bart Schaefer
2014-12-19  6:08       ` Kurtis Rader
2014-12-19  6:58         ` Ray Andrews
2014-12-20  2:55           ` Bart Schaefer
2014-12-20  3:05             ` Kurtis Rader
2014-12-20  3:49             ` Ray Andrews
2014-12-20  4:40               ` Bart Schaefer
2014-12-20  5:50                 ` Ray Andrews
2014-12-19  6:45     ` Ray Andrews
2014-12-19 11:21     ` Oliver Kiddle [this message]
2014-12-20  2:09       ` Bart Schaefer
2014-12-20  2:58       ` Kurtis Rader
2014-12-20  3:55         ` Ray Andrews
2014-12-20  5:08           ` Lawrence Velázquez
2014-12-20  5:37             ` Ray Andrews
2014-12-20  9:45               ` ZyX
2014-12-19  6:00   ` Ray Andrews

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=20335.1418988086@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@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).