zsh-workers
 help / color / Atom feed
* 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, back to index

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

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git