]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/env
Use . instead of source to load config files.
[config/dotfiles.git] / shell / env
index 595115370245783eb67c48ae970aff3e880bcbf8..9a31ff32a44258cbdc548748f91155ca22d1134c 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -107,13 +107,13 @@ function source_config() {
     # If the file does exist then source it.
     if [ -f $source_file ]; then
         source_debug "source_config(): -> sourcing $source_file"
-        source $source_file
+        . $source_file
 
     # Otherwise load the .local file if it exists and .local files are
     # allowed.
     elif [ -f $source_file_local -a x$5 != xnolocal ]; then
         source_debug "source_config(): -> sourcing $source_file_local"
-        source $source_file_local
+        . $source_file_local
     else
         source_debug "source_config(): -> neither exists"
     fi