Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: protect backslash before space
- X-seq: zsh-users 30472
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: protect backslash before space
- Date: Wed, 1 Apr 2026 09:47:52 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QHyrSk6Zam15CDwnfrVQeeTK2E3rxntZT2JB0960d/o=; fh=jPiVBPZEfwBf151+XrsNuwNUZll4fQOLSzRxlVE23MQ=; b=IvTSVh5NUqElI/gj9KIzrROQQSJxeeSoxRer9rWH+Ph9WLZ7SyVH8SEJg2gZTOASf3 ttt7FNBwStVnUevhr7hWZCbYAwg0gQT8jESp2td2c10jOQSrDlesNQxObuW760RNjkQt NF9CCG2x4NAQKqCxFJGFl+Ng4uJ7EhfERb1W0qqC0/vdF00GHgpxBk7XJVV35Vnotcx+ y3HraidQOE8g8Lvs+okOJCnDWTYfxOY7h5XU56T/ooXx+VlHCL7/PWkjQSKylJ5No+PJ vbzEAO/bbRxrtDqueIZyM3eGVSeJ+uva9fdgNHEe3usATCQVVwWEJ+FJI1DcNpGt0Mg3 hRxQ==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1775062085; cv=none; d=google.com; s=arc-20240605; b=PKaiYA0xh9nFUGQ9rlj01fZZa1payNtG62iDogABIMFYGtsnqhq6J199wQMt1LSQYP 5s9O/LMzuthfJaGq8o+8dU8UsM9oL1+8eapJxEoROlpTulWq5d2dVjTVukFkNjIwBrVK g3Pk3L2zW1kjD+6WBPgOd1nYNlXtLFGHSupak29DoJzXagffAeC7esakl+E8Mq6WpZL/ aXBgn+41Wbwahnq6AfqCLg7LV7gnA3qaZtzQg6St4flXDRhfhDwRSco7uDGascSQTY31 soffY7xIi2I0ctPf0gnfbJ10EqZRMIIXkRixlWUuZfbnnOSyec8RGcnAgpLfB1kQz3Ih Lwig==
- Archived-at: <https://zsh.org/users/30472>
- In-reply-to: <f8b01396-d8c8-4837-aa8c-3f1e467bfeaa@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- References: <f8b01396-d8c8-4837-aa8c-3f1e467bfeaa@eastlink.ca>
On Wed, Apr 1, 2026 at 9:08 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> I like my functions to be able to see their own tail.
I have no idea what that means.
> BTW, question: why does the script version above add the single quotes to indicate a single filename whereas the 'eval'ed version doesn't see the need? I'd vaguely expect the single quotes in both.
I'm not entirely sure what this question means, either, but there's
something strange about your examples, because you don't have noglob
for the "." (dot) command so
% . test junk*
should be expanding and therefore passing two arguments to the "ls" at
the end of the script.
So there's something you're not showing us?
Also, in either of your examples but using
% . test junk* && test junk*
for reference, the "alias test=..." created in the script will NOT be
applied to the right-hand-side of the && when this is the first time
this script is sourced in any given shell. Aliases have to be in
place before the command line is accepted.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author