zsh-workers
 help / color / mirror / code / Atom feed
* autoloaded functions through |
@ 1997-02-05  8:23 G C Wing
  1997-02-05 14:00 ` Zefram
  0 siblings, 1 reply; 2+ messages in thread
From: G C Wing @ 1997-02-05  8:23 UTC (permalink / raw)
  To: zsh-workers

Well, looks like a bug. (zsh 3.0.3-test3)

% echo "echo this is ls" > fbin/ls   # fbin is in FPATH
% autoload ls
% which -a ls
undefined ls () { }
/bin/ls
% ls | cat
this is ls
% which -a ls
undefined ls () { }
/bin/ls
% ls
this is ls
% which -a ls
ls () {
        echo worked OK
}
/bin/ls

-- 
Geoff Wing [gwing@primenet.com.au]   Technical Manager
  Phone    : +61-3-9818 2977         PrimeNet - Internet Consultancy
  Facsimile: +61-3-9819 3788         Web : <URL:http://www.primenet.com.au/>
  Mobile   : 0412 162 441


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: autoloaded functions through |
  1997-02-05  8:23 autoloaded functions through | G C Wing
@ 1997-02-05 14:00 ` Zefram
  0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1997-02-05 14:00 UTC (permalink / raw)
  To: G C Wing; +Cc: zsh-workers

G C Wing wrote:
>Well, looks like a bug. (zsh 3.0.3-test3)
...
>% ls | cat
>this is ls
>% which -a ls
>undefined ls () { }
>/bin/ls

No, it's not a bug.  the left hand side of a pipeline runs in a
subshell, so the autoloading can't affect the main shell.

-zefram


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-05 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-05  8:23 autoloaded functions through | G C Wing
1997-02-05 14:00 ` Zefram

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).