Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
1718627440
59 days ago
|
parent
|
context
|
favorite
| on:
Scripts I wrote that I use all the time
What's the difference between 'source' and '.' ?
iguessthislldo
58 days ago
|
next
[–]
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
58 days ago
|
prev
|
next
[–]
If $SHELL is /bin/sh, the source command does not exist, but '.' still works.
dbalatero
58 days ago
|
prev
[–]
nothing afaict
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: