From 6217ecd46b7124d778b6a4275773091e1adf3122 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Aug 2008 22:48:27 +0200 Subject: etc/functions/xsource: Added 'different behavior' comment --- etc/functions/xsource | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') 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 } -- cgit v1.2.3