zsh-users
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <larryv@zsh.org>
To: "Ray Andrews" <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: tilde syntax
Date: Thu, 04 Jan 2024 18:40:18 -0500	[thread overview]
Message-ID: <3fb34197-be9a-4323-87e0-7052cecf33ea@app.fastmail.com> (raw)
In-Reply-To: <aafdd7a4-7f3d-4662-8268-7b83ac470d93@eastlink.ca>

On Thu, Jan 4, 2024, at 6:04 PM, Ray Andrews wrote:
> On 2024-01-04 14:49, Bart Schaefer wrote:
>> No, it turns "do nothing else" into "also act as a glob or pattern".
>> In this example, it's a glob. I tried to find something about that in the manual but it's one of those things where you need to know what to call it in words.  Searching for " $~ " hardly works.

Search for "${~spec}", or go here:

https://zsh.sourceforge.io/Doc/Release/Expansion.html#index-GLOB_005fSUBST_002c-toggle

>> What do you mean by "works"?  
> I mean the code does what I'm expecting.

This is thoroughly unhelpful.  Different people can expect different
behaviors, and no one here is psychic.  You need to explicitly state
what your expectations are.

-- 
vq


  reply	other threads:[~2024-01-04 23:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04 22:31 Ray Andrews
2024-01-04 22:49 ` Bart Schaefer
2024-01-04 23:04   ` Ray Andrews
2024-01-04 23:40     ` Lawrence Velázquez [this message]
2024-01-05  0:12       ` Ray Andrews
2024-01-05  1:41         ` Lawrence Velázquez
2024-01-05  2:03           ` Ray Andrews
2024-01-05 14:41             ` Mark J. Reed
2024-01-05 16:42               ` Ray Andrews
2024-01-05 19:58                 ` Bart Schaefer
2024-01-05 22:50                   ` Ray Andrews
2024-01-05 23:27                     ` Bart Schaefer
2024-01-05 23:47                       ` Ray Andrews
2024-01-06  0:23                         ` Bart Schaefer
2024-01-06  3:44                           ` Ray Andrews

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=3fb34197-be9a-4323-87e0-7052cecf33ea@app.fastmail.com \
    --to=larryv@zsh.org \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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).