diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-26 22:48:27 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-26 22:48:27 +0200 |
commit | 6217ecd46b7124d778b6a4275773091e1adf3122 (patch) | |
tree | e1f7c8255eb989929152de7aa5f832973c342c75 /etc/functions | |
parent | ae0411c7fb1430638ea56dd272154e7148a7275e (diff) |
etc/functions/xsource: Added 'different behavior' comment
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/xsource | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/functions/xsource b/etc/functions/xsource index ff01ab4..2546965 100644 --- a/etc/functions/xsource +++ b/etc/functions/xsource @@ -1,4 +1,8 @@ ## vim:ft=zsh +# Note: This function's behaviour differs hrom source. +# With source, parameters declared local are available to the sourcing script. +# With xsource, parameters declared local will NOT be available. +# Keep that in mind when using this function if [[ -r $1 ]] { source $1 } |