Closed smalltalkman closed 4 months ago
I wanted to specify the HOME directory before starting busybox, but busybox entered the path specified by BB_SYSTEMROOT.
The directory specified by HOME must exist. Otherwise, it will enter the existing parent directory.
can I specify the HOME variable in /etc/profile?
No, that isn't possible. It would be quite easy to add such a feature, but I'm a bit uneasy about the idea. Allowing /etc/profile
to change HOME
isn't how things work in Unix.
Sorry, I just submitted another issue. https://github.com/rmyorston/busybox-w32/issues/403
I wanted to specify the HOME directory before starting busybox, but busybox entered the path specified by BB_SYSTEMROOT.
It seems to be related to the code here: https://github.com/rmyorston/busybox-w32/blob/758a72f55360a1f3a5400aeca29bc2ea0647bad1/shell/ash.c#L16242
Also, can I specify the HOME variable in /etc/profile? It would be very convenient if possible.