zsh-workers
 help / color / mirror / code / Atom feed
* Re: !!:t applies to line, not words
  2001-06-03 23:16 !!:t applies to line, not words Peter Stephenson
@ 2001-06-03 23:00 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2001-06-03 23:00 UTC (permalink / raw)
  To: Peter Stephenson, Zsh hackers list

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   


^ permalink raw reply	[flat|nested] 2+ messages in thread

* !!:t applies to line, not words
@ 2001-06-03 23:16 Peter Stephenson
  2001-06-03 23:00 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2001-06-03 23:16 UTC (permalink / raw)
  To: Zsh hackers list

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

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-03 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-03 23:16 !!:t applies to line, not words Peter Stephenson
2001-06-03 23:00 ` Bart Schaefer

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).