From: tfheen Date: Sun, 27 Apr 2003 08:47:58 +0000 (+0000) Subject: try to fix solaris /bin/sh b0rkenness X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7435d5f23aed70419b2085b888d2278034bcb881;p=dotfiles try to fix solaris /bin/sh b0rkenness git-svn-id: file:///svn/tfheen/trunk/dotfiles@133 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/Xclients-default b/Xclients-default index c64363c..93814b1 100755 --- a/Xclients-default +++ b/Xclients-default @@ -1,5 +1,12 @@ #! /bin/sh +# SunOS /bin/sh is broken wrt local. *sigh* +if test "`uname -s`" = "SunOS" -a "$RUNNING_UNDER_BASH" = ""; then + RUNNING_UNDER_BASH=1 + export RUNNING_UNDER_BASH + exec bash $0 "$@" +fi + # Debugging echo `date` . ~/.environment