zsh-users
 help / color / mirror / code / Atom feed
* Unexpected results
@ 2022-08-22 13:16 Perry Smith
  2022-08-22 14:01 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Perry Smith @ 2022-08-22 13:16 UTC (permalink / raw)
  To: Zsh Users


[-- Attachment #1.1: Type: text/plain, Size: 222 bytes --]

This was unexpected:

 % echo 'a/path with spaces/in/quotes'
a/path/in/quotes
 % echo !:1:h
quote>

I was expecting the equivalent of

 % echo 'a/path/in'

What seems to work is

 % echo !:1:h'

It just seemed odd to me.


[-- Attachment #1.2: Type: text/html, Size: 1562 bytes --]

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2022-08-22 21:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 13:16 Unexpected results Perry Smith
2022-08-22 14:01 ` Peter Stephenson
2022-08-22 20:51   ` Bart Schaefer
2022-08-22 20:56     ` Roman Perepelitsa
2022-08-22 21:07       ` 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).