* How to use noglob with an alias?
@ 2020-01-19 16:39 Jörg Sommer
2020-01-19 20:30 ` Daniel Shahaf
0 siblings, 1 reply; 2+ messages in thread
From: Jörg Sommer @ 2020-01-19 16:39 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
Hello,
how can I use an alias and noglob?
```sh
% alias foo=true
% foo
% noglob foo
zsh: command not found: foo
```
Regards Jörg
--
Treffen sich zwei Funktionen.
Sagt die eine: „Verschwinde oder ich differenzier' dich!“
Erwidert die andere: „Ätsch, ich bin exponentiell!“
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 269 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to use noglob with an alias?
2020-01-19 16:39 How to use noglob with an alias? Jörg Sommer
@ 2020-01-19 20:30 ` Daniel Shahaf
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2020-01-19 20:30 UTC (permalink / raw)
To: Jörg Sommer, zsh-workers
Jörg Sommer wrote on Sun, 19 Jan 2020 16:39 +00:00:
> Hello,
>
> how can I use an alias and noglob?
>
> ```sh
> % alias foo=true
> % foo
> % noglob foo
> zsh: command not found: foo
> ```
Add «alias noglob='noglob '» to your configuration, otherwise the word
after 'noglob' wouldn't be subject to alias expansion. (That's the default;
some reserved words, such as 'time', are an exception.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-19 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-19 16:39 How to use noglob with an alias? Jörg Sommer
2020-01-19 20:30 ` Daniel Shahaf
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).