bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems with a subshell in .profile


From: Nils
Subject: problems with a subshell in .profile
Date: Sat, 17 Oct 2009 05:35:33 -0700 (PDT)
User-agent: G2/1.0

I use a shared .profile for bash and ksh93, I have a ksh93 specific
section which I want to separate through the following construct:

if ( test -n "${.sh.version}" ) 2>/dev/null; then
    echo "ksh"
fi

bash just hangs while it works in POSIX shell and ksh93. A bash script
with above contents also works as expected.
Why is this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]