bash - Difference between "source" and "." -
i trying learn bash, , came across source - handy. however, when tried use source scripts in different folders , created different users, didn't work. while searching online, learned . (a period). it's supposed synonym of source, tried changing sake of it. , worked. i'm curious.
what difference between:
source and
. if none, imagining things?
in bash, synonymous.
see https://askubuntu.com/questions/25488/what-is-the-difference-between-source-and-in-bash
about other flavors of shells, may have ., source may considered bashism.
(which kinda bad, find source more readable ., though suppose wouldn't use bash maximum readability.)
Comments
Post a Comment