zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: new parameter expansion type?
Date: Tue, 31 Aug 1999 17:47:52 +0000	[thread overview]
Message-ID: <990831174752.ZM17088@candle.brasslantern.com> (raw)
In-Reply-To: <199908310850.KAA27246@beta.informatik.hu-berlin.de>

On Aug 31, 10:50am, Sven Wischnowsky wrote:
} Subject: Re: PATCH: new parameter expansion type?
}
} > This is essentially the same problem as ${(A)foo:=string} where it would
} > be nice to be able to have "string" be interpreted as an array.  I pointed
} > out the parsing problem with this back at that time.  It would be nice to
} > have a solution; Andrej suggested ${(A)foo:=(val1 val2 ...)} but it will
} > require a change to the parser to make that work.
} 
} Or we could add a flag that says that the string is to be split into
} different words and change `dquote_parse()' to allow us to say that
} the `endchar' is any white-space (or any seperator character).

I don't think that will work ... you have to split the string into words
long before you get into paramsubst() or you can't be guaranteed to get
it right.  It has to be a top-level syntax thing, not a parameter flag.

But maybe "a flag" isn't really what you meant ...

} I would have suggested using the forms with a double character (as in
} `${(A)arr:==a b c}') if that weren't too incompatible.

That means to assign the full path of the command named "a b c" to the
array.  You can't get away with overloading `=' any more than it already
is, I'm afraid.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1999-08-31 17:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-31  8:50 Sven Wischnowsky
1999-08-31 17:47 ` Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-08-30 10:38 Sven Wischnowsky
1999-08-31 13:18 ` Andrej Borsenkow
1999-08-30  9:49 Sven Wischnowsky
1999-08-30 10:06 ` Andrej Borsenkow
1999-08-30 10:58 ` Tanaka Akira
1999-08-30 16:05 ` Bart Schaefer
1999-08-30 16:10   ` Peter Stephenson

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=990831174752.ZM17088@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).