mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
Test for 36265, no alias expansion after "function"
This commit is contained in:
parent
f4c37a78b1
commit
e5d5a76dce
2 changed files with 22 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
||||||
2015-08-21 Peter Stephenson <p.stephenson@samsung.com>
|
2015-08-21 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
|
* 36268: Test/C04funcdef.ztst: test for 36265.
|
||||||
|
|
||||||
|
* 36265 plus FAQ: fix alias expansion after "function"
|
||||||
|
Names after the first were treated as command words so had
|
||||||
|
non-global aliases expanded. Add an FAQ note that use of the
|
||||||
|
function keyword works around other alias problems. Also
|
||||||
|
fixes problem that "function { ... }" didn't work with
|
||||||
|
IGNORE_BRACES set.
|
||||||
|
|
||||||
* 36264: Src/glob.c: pathbuf is apparently metafied; document
|
* 36264: Src/glob.c: pathbuf is apparently metafied; document
|
||||||
this and unmetafy for system calls.
|
this and unmetafy for system calls.
|
||||||
|
|
||||||
|
|
|
@ -295,6 +295,19 @@
|
||||||
>}
|
>}
|
||||||
>This is the correct output.
|
>This is the correct output.
|
||||||
|
|
||||||
|
unfunction command_not_found_handler # amusing but unhelpful
|
||||||
|
alias first='firstfn1 firstfn2' second='secondfn1 secondfn2'
|
||||||
|
function first second { print This is function $0; }
|
||||||
|
first
|
||||||
|
second
|
||||||
|
firstfn1
|
||||||
|
secondfn1
|
||||||
|
127:No alias expansion after "function" keyword
|
||||||
|
>This is function first
|
||||||
|
>This is function second
|
||||||
|
?(eval):6: command not found: firstfn1
|
||||||
|
?(eval):7: command not found: secondfn1
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
|
||||||
rm -f file.in file.out
|
rm -f file.in file.out
|
||||||
|
|
Loading…
Reference in a new issue