Re: problems with a subshell in .profile

2009-10-18 Thread Chet Ramey
Nils wrote: > 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 scr

problems with a subshell in .profile

2009-10-17 Thread Nils
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