Sebastien Marie wrote: > > With some simplification, it is running: > /bin/sh -c '. /root/.profile; echo ENV=$ENV; echo PATH=$PATH' > > and check the output. In your case, it is complaining that "echo ENV=" > doesn't produce the expected line with 'ENV' string. >
Further investigation uncovered it is only interested in the output of ENV= and PATH=. However, it does not suppress stdout when executing the profile scripts, which can generate untrusted output to stdout or stderr. In my case I was running neofetch from the .profile which produces complex output to stdout (Puffy with blinking eyes) and that broke the regex parser. That output should be suppressed *regardless*, it appears a coincidence that it would parse out the variables from plain text stream, so I submitted a patch for this to bugs@.