zsh-users
 help / color / mirror / code / Atom feed
From: Johan Grande <nahoj@crans.org>
To: linuxtechguy@gmail.com, zsh <zsh-users@zsh.org>
Subject: Re: alias/anon_function quoting issue
Date: Thu, 27 Jul 2023 10:50:36 +0200	[thread overview]
Message-ID: <94d698df-95f6-5d42-0402-5b46b7152463@crans.org> (raw)
In-Reply-To: <CA+rB6GJ_opAWNCCBbQC=KQLwvYpjJ2Z6SK+yNjXqpuYyfKN+aw@mail.gmail.com>

Le 14/07/2023 à 16:46, Jim a écrit :
> Hi everyone, First, admittedly what I'm trying to do can be done in a
> regular function without an issue. That said, I just hate giving up
> trying to make it work.(sorry)
> 
> [...]
> 
> FYI, the alias itself is using single quotes to surround the
> anon_function. alias name='(){ ... }'

Hi, I'm curious, is there a particular advantage to doing this rather 
than declaring a function?

-- 
Johan


  parent reply	other threads:[~2023-07-27  8:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-14 14:46 Jim
2023-07-14 15:06 ` Roman Perepelitsa
2023-07-14 16:42 ` Bart Schaefer
2023-07-14 16:52   ` Bart Schaefer
2023-07-14 21:24   ` Jim
2023-07-27  8:50 ` Johan Grande [this message]
2023-07-28 21:53   ` Bart Schaefer

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=94d698df-95f6-5d42-0402-5b46b7152463@crans.org \
    --to=nahoj@crans.org \
    --cc=linuxtechguy@gmail.com \
    --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).