zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Shell-word splitting (was: Re: Proposed _history completer)
Date: Tue, 2 May 2000 10:31:08 +0200 (MET DST)	[thread overview]
Message-ID: <200005020831.KAA30064@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Mon, 1 May 2000 05:48:39 +0000


Bart Schaefer wrote:

> On Apr 28,  9:20am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> } 
> } > I think having a way to chop a string into shell words -- something like
> } > what you did for copy-prev-shell-word -- would be more effective.
> } 
> } [...] some parameter flag, most likely. Hm, s and S are taken,
> } so are c and C. We could use `=' but that would probably be too
> } irritating.
> 
> Hrm.  How would a parameter flag do this on an array?  Parse each word
> separately?

I wrote this at the weekend (quite simple) and, yes, it just split the 
array's elements separately and then returned an array with all words
from all elements.

> Hrm, again; maybe the way to do this is with a modifier rather than a
> flag.  :S is available, and it'd be kinda fun to be able to apply this
> to history as well as to parameters.  Or maybe it wouldn't ...

I'm withholding the patch I have because of this. I'll check how
difficult this is to implement, but I guess it's equally simple.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-05-02  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-02  8:31 Sven Wischnowsky [this message]
2000-05-03  7:16 Sven Wischnowsky
2000-05-03 10:55 ` 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=200005020831.KAA30064@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).