Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps it's relative to the application's current working directory?


Binary is in ~/Downloads/dezoomify-rs/, image was saved in ~/.


Unix programs start, not in the directory that their binaries are in, but rather in the directory that their parent processes are in. That could be the directory of the binary if the parent process did a chdir(2) there before spawning the child, but command-line shells never do that unless the user explicitly typed "cd".


It is relative to the current working directory, which is not necessarily the same as the directory the binary is in. We could display the full path, though. Interested in making a PR ?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: