1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

33325: fix ksh autoloads with redirections on function definitions

This commit is contained in:
Peter Stephenson 2014-10-02 16:15:10 +01:00
parent dad5063a7c
commit f16813792e
3 changed files with 81 additions and 19 deletions

View file

@ -216,3 +216,16 @@ F:This similar test was triggering a reproducible failure with pipestatus.
>done
F:This test checks for a file descriptor leak that could cause the left
F:side of a pipe to block on write after the right side has exited
print "autoload_redir() { print Autoloaded ksh style; } >autoload.log" >autoload_redir
autoload -Uk autoload_redir
autoload_redir
print No output yet
cat autoload.log
functions autoload_redir
0:
>No output yet
>Autoloaded ksh style
>autoload_redir () {
> print Autoloaded ksh style
>} > autoload.log