Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: !!:t applies to line, not words
- X-seq: zsh-workers 14701
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: !!:t applies to line, not words
- Date: Sun, 3 Jun 2001 23:00:39 +0000
- In-reply-to: <20010603231626.81CC314286@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010603231626.81CC314286@xxxxxxxxxxxxxxxxxxxxxxxx>
On Jun 4, 12:16am, Peter Stephenson wrote:
} Subject: !!:t applies to line, not words
}
} Do you think this is right? It's not how it works with arrays.
}
} % print words with no path /a/path more words
} words with no path /a/path more words
} % print !!:t
} % print path more words
In tcsh, :t appears to be ignored unless it's used on a single word.
E.g. `!!:t' is the same as `!!' and `!*:t' is the same as `!*', but
`!$:t' is the tail of the last word and `!:5:t' is the tail of the 5th
word, etc., and `!!:gt' applies :t to every individual word.
I don't have an old BSD csh around to play with, and I don't remember
what it did. Zsh's handling is almost certainly based on BSD 4.2-or-so
csh rather than tcsh.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author