Open timtro opened 7 years ago
It is appropriate. I will have to play with it a bit to see what is happening; I've been very pressed for time lately, but might have a a chance this weekend. I think the pipe is affecting stdin (pipe to sh).
Thanks. It isn't urgent, so don't rush for me. But I sure do appreciate your attention. I reproduced the error on my laptop, and included the full stacktrace. See the edit.
Thanks in advance. I understand this is likely not a bug, but merely something I don't understand.
I am writing a script to install my working environment (on my Linux computers) and I use zsh with the oh-my-zsh suite. I would have hoped the following code works:
and for the most part it does. However, the
install.sh
script callschsh
to change the user shell. If you runchsh
, in your terminal, it will ask for the user's password. At this point, plumbum throws an exception: (Edit: I included the full stacktrace)I can't reproduce the error if I simply do this:
so there is something about having it run inside the script, piped to bash.
Any ideas? I realise this is a shot in the dark. Feel free to close this issue if you find it inappropriate for this setting.