You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to start a bash shell using an empty HOME folder (for tests unrelated to resh), and that results in a bunch of resh errors.
When I run export HOME=$(mktemp -d), that results in
bash: /tmp/tmp.QyTXwj6Qdu/.resh/postcollect_last_run_out.txt: File or directory not found.
head: '/tmp/tmp.QyTXwj6Qdu/.resh/postcollect_last_run_out.txt' can't be opened for reading: File or directory not found.
resh-postcollect ERROR:
then when I start a new bash with this manipulated HOME, I get these errors for each command:
__bp_precmd_invoke_cmd: Command not found.
__bp_interactive_mode: Command not found.
Is it possible to get rid of these errors when HOME is empty?
The text was updated successfully, but these errors were encountered:
@Leseratte10:
This (5b07e5c) should fix the first part of the problem. Can you update (reshctl update) and try if you still see the issue?
The second part is that resh depends on bash-preexec - ~/.bash-preexec.sh file is copied into your home during installation. When you copy the .resh directory into the new home you should copy the ~/.bash-preexec.sh file as well. I know that this is not ideal. To be honest I didn't really anticipate people changing their home. I will think about how I can make the whole installation more contained so that this can't happen in the future.
I was trying to start a bash shell using an empty HOME folder (for tests unrelated to resh), and that results in a bunch of resh errors.
When I run
export HOME=$(mktemp -d)
, that results inthen when I start a new bash with this manipulated HOME, I get these errors for each command:
Is it possible to get rid of these errors when HOME is empty?
The text was updated successfully, but these errors were encountered: