zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: Avoiding the zshells intelligence...in one case
Date: Tue, 24 Jan 2017 17:19:04 -0800	[thread overview]
Message-ID: <864415b1-bb85-8b61-1f2e-ae811802fafe@eastlink.ca> (raw)
In-Reply-To: <alpine.LRH.2.00.1701241424440.4560@toltec.zanshin.com>

On 24/01/17 02:31 PM, Bart Schaefer wrote:
> On Tue, 24 Jan 2017, Ray Andrews wrote:
>
>> Sure, but if we have any chains -- one command calling another -- we end
>> up loosing the quotes as things are passed along.
> That's not true UNLESS you've either used a poorly constructed alias (which
> is not really "one command calling another") or you have explicitly removed
> quoting with "eval" or a parameter expansion flag.  Once a word is properly
> quoted inside a parameter value, even a positional parameter, it remains
> properly quoted until you mess with it somehow (which might include having
> SH_WORD_SPLIT set, but that's why that's not set by default).

God knows.  I've probably zigged to fix my zags  on occasion, which is 
to say that I've had to do funny stuff to fix other funny stuff and the 
right way is not nearly as bad as I think.  I'd almost pay someone to 
look over my functions and proof read them, probably lots of bad code.
> And that's just what I'm saying -- it would be nice to have some sort of
> bomb-proof zero expansion ability.
> You're missing the point.  You can't "bomb-proof" syntactic tokens like
> "&" without fundamentally changing the language.  It's like asking a C
> compiler not to recognize semicolons.

But you can single quote, no?


  reply	other threads:[~2017-01-25  1:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22  8:01 Meino.Cramer
2017-01-22 18:26 ` Bart Schaefer
2017-01-22 21:52   ` Martin Vaeth
2017-01-22 22:41     ` Bart Schaefer
2017-01-23 18:09       ` Martin Vaeth
2017-01-23 22:26         ` Bart Schaefer
2017-01-23 22:40           ` Ray Andrews
2017-01-24  2:48             ` Eric Cook
2017-01-24  5:42               ` Ray Andrews
2017-01-24 15:58                 ` Eric Cook
2017-01-24 18:21                   ` Ray Andrews
2017-01-24 22:31                     ` Bart Schaefer
2017-01-25  1:19                       ` Ray Andrews [this message]
2017-01-25  3:46                         ` Bart Schaefer
2017-01-25  5:40                           ` Ray Andrews
2017-01-25 16:50                             ` Bart Schaefer
2017-01-25  4:56                         ` Bart Schaefer
2017-01-25  5:47                           ` Ray Andrews
2017-01-23 22:44         ` Bart Schaefer
2017-01-24 19:37           ` Martin Vaeth
2017-01-24 21:24             ` Bart Schaefer

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=864415b1-bb85-8b61-1f2e-ae811802fafe@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).