diff options
Diffstat (limited to 'etc/functions/xsource')
-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 } |