Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mhio
on Dec 4, 2023
|
parent
|
context
|
favorite
| on:
Relative shell script includes with realpath on Fr...
Actually nothing. The format seems to have come from a similar line that builds the script path..
printf '%s/%s\n' "$(pwd -P)" "$(basename "$0")"
It's just been in place, in so many places, so long it's become unquestionable. So yes the `pwd -P` in this case will suffice.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: