Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
1718627440
· 1y ago · 0 comments
What's the difference between 'source' and '.' ?
Comments
[–]
iguessthislldo
1y ago
I think they're the same except '.' is POSIX and 'source' is specific to bash and compatible shells. I personally just use source since it's easier to read and zsh and bash account for basically 100% of my shell usage.
[–]
Noumenon72
1y ago
If $SHELL is /bin/sh, the source command does not exist, but '.' still works.
[–]
dbalatero
1y ago
nothing afaict