[cgiapp] CGI now fails with /bin/sh: 0: Illegal option -p after upgrade to ubuntu precise (/bin/sh-->/bin/dash)

Matthias Ferdinand mf+cgiapp at mfedv.net
Tue Oct 30 19:35:54 EDT 2012


On Tue, Oct 30, 2012 at 02:18:49PM -0400, Michael Friendly wrote:
> I understand why this error occurs, but not how to fix it, at either the
> perl or OS level.
> WHY:  It seems that in my current ubuntu precise release, /bin/sh
> has been replaced by /bin/dash, and the latter does not support the
> -p option of the former /bin/sh,

Michael, you can change the default shell back to bash using
  sudo dpkg-reconfigure dash
and answering "n" to the question "Install dash as /bin/sh?"

Might slow down system start a little, but should actually work.

Regards
Matthias


More information about the cgiapp mailing list