zsh-users
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Lloyd Zusman <ljz@asfast.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Subscripting without temporaries
Date: Tue, 13 Apr 2004 12:00:27 -0700	[thread overview]
Message-ID: <20040413190027.GE5188@blorf.net> (raw)
In-Reply-To: <m3y8oz7rw8.fsf@asfast.com>

On Tue, Apr 13, 2004 at 12:40:39PM -0400, Lloyd Zusman wrote:
> But what options are necessary in order to make this
> work?  The commands above produce this output for me:
> 
>   Some
>   text
>   [particular
>   text]
>   Another
>   text

You must have sh_word_split set.  This tells zsh to do word-splitting
of variables, even when not explicitly asked to split things (like the
Bourne shell does).  You can either turn this off, or put double quotes
around any variable that you don't want to be split.

..wayne..


  parent reply	other threads:[~2004-04-13 19:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13 12:00 DervishD
2004-04-13 15:29 ` Bart Schaefer
2004-04-13 16:40   ` Lloyd Zusman
2004-04-13 17:11     ` Phil Pennock
2004-04-13 18:17       ` Lloyd Zusman
2004-04-13 17:17     ` DervishD
2004-04-13 17:18     ` Bart Schaefer
2004-04-13 19:00     ` Wayne Davison [this message]
2004-04-13 17:14   ` DervishD
2004-04-14  1:58     ` Bart Schaefer
2004-04-14 16:13       ` DervishD

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=20040413190027.GE5188@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=ljz@asfast.com \
    --cc=zsh-users@sunsite.dk \
    /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).