From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8012 invoked from network); 23 Jun 2020 13:11:05 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2020 13:11:05 -0000 Received: (qmail 13579 invoked by alias); 23 Jun 2020 13:10:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: Sender: zsh-users@zsh.org X-Seq: 24948 Received: (qmail 25853 invoked by uid 1010); 23 Jun 2020 13:10:55 -0000 X-Qmail-Scanner-Diagnostics: from us-smtp-2.mimecast.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25850. spamassassin: 3.4.4. Clear:RC:0(205.139.110.61):SA:0(-2.0/5.0):. Processed in 4.373864 secs); 23 Jun 2020 13:10:55 -0000 X-Envelope-From: kdudka@redhat.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf3.redhat.com designates 205.139.110.61 as permitted sender) X-MC-Unique: CJaJGkBINoeyJ6Kt5u0R9A-1 From: Kamil Dudka To: Perry Smith Cc: zsh-users@zsh.org Subject: Re: Alias call in function fails... Date: Tue, 23 Jun 2020 15:10:05 +0200 Message-ID: <2982509.CQOukoFCf9@nbkamil> In-Reply-To: References: <20200623120429.2c889b67@tarpaulin.shahaf.local2> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kdudka@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, June 23, 2020 2:46:50 PM CEST Perry Smith wrote: > My amateur 2 cents =E2=80=A6 I gave up on aliases with bash and never tri= ed them > with zsh. >=20 > Aliases are just weird oddities that have lots of special cases. Since > functions now exist (aliases came first in the global history of shells),= I > don=E2=80=99t see any advantages to aliases and they have many problems. >=20 > I don=E2=80=99t know of anything an alias can do that a function can=E2= =80=99t? Yet such things exist. You can find many use cases for them in the User=E2= =80=99s=20 Guide to the Z-Shell, as for example: % alias %=3D' ' % alias mkdir=3D'nocorrect mkdir' % alias zfget=3D'noglob zfget' Kamil