From b0706d64eea55aebaad66a32510e40f41d15d32e Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 7 Feb 2016 00:22:10 +0000 Subject: 37896: zshbuiltins: Document argv behaviour of 'source' without arguments --- ChangeLog | 3 +++ Doc/Zsh/builtins.yo | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 182535df8..12f5366cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-02-09 Daniel Shahaf + * 37896: Doc/Zsh/builtins.yo: zshbuiltins: Document argv + behaviour of 'source' without arguments + * unposted: ChangeLog: Move the 37678 entry to the correct location (and author). diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 542cecffc..c425ff1cd 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -81,6 +81,10 @@ then commands are read from that file instead of var(file). If any arguments var(arg) are given, they become the positional parameters; the old positional parameters are restored when the var(file) is done executing. +However, if no arguments are given, +the positional parameters remain those of the calling context, +and no restoring is done. + If var(file) was not found the return status is 127; if var(file) was found but contained a syntax error the return status is 126; else the return status is the exit status of the last command executed. -- cgit 1.4.1