Paul Southerby wrote:
> 
> Dave Miner,
> 
> Many of our Perl scripts call a script call rdmach to pull a sh
> variable into the Perl script.  It is a very simple script:
> 

I would suggest consulting the ksh93 project to see if there's a simple 
way to resolve your issue.

Dave

>     #!/bin/sh  
>      
>     testname_log_use=`basename $0`
>     /autohome/bin/log_usage_ksh $testname_log_use
>      
> 
>     . /machfile
> 
>     if [ -z "$1" ]
>     then
>         exit 1
>     fi
> 
>     . /machfile
>     var=$1
> 
>     varval=`set | grep "^$var" | cut -f2 -d'='`
>     echo $varval
>     exit 0
> 
> Let's say we do a "rdmach SUBNET=" on the below which is in a
> /bin/sh script called "/machfile"
> 
>     SUBNET="\
>     e1000g0 s3-39
> 
> With ksh in snv_110 when we "echo $varval" we get:
> 
>     e1000g0 s3-39
> 
> With ksh93 in Opensolaris when we "echo $varval" we get:
> 
>     'e1000g0 s3-39'
> 
> Then our Perl script takes the ' (single quote) and sees 'e1000g0
> as the correct value, rather than e1000g0 (no quote).  The same happens
> with s3-39' (the single quote becomes part of the value that
> the Perl script tries to use).  Then our Perl script hangs with
> Opensolaris.
> 
> It took some time to see that it wasn't our Perl script that was
> failing, but it was our simple rdmach sh (which is using ksh93)
> that was failing.
> 
> We currently are using more than 240 sh and ksh scripts in our
> test environment.  The idea of trying to get all of these scripts
> to work with ksh93 is a rather daunting idea.   So, to work around
> the problem for the time being, we've chosen to use the old
> "sh" and "ksh" being delivered with the latest release of Nevada.
> 
> All of our scripts going forward will be written with ksh93.
> And over time, we may convert all of our scripts to run ksh93.
> 
> I hope this helps outline our issue with ksh93.
> 
> Regards,
> Paul Southerby
> 
> On 03/18/09 08:23, Dave Miner wrote:
>> Jerry Edwards wrote:
>>> Hi,
>>>
>>>     We have a lot of scripts that depend on the Nevada environment 
>>> that is in 109/110.
>>> How do we get that environment back. Is there a set of packages we 
>>> can install to get
>>> the old ksh back. We have committed to test OpenSolaris believing 
>>> that once installed
>>> that the bits are all the same. We do not have time to update 
>>> hundreds of scripts before
>>> build 1 gets here.
>>>
>>
>> No, there isn't an OpenSolaris package which includes ksh88.  On the 
>> other hand, ksh93 should be quite compatible with ksh88.  Is there a 
>> specific problem you're aware of?
>>
>> Dave
>>
>>> thanks
>>> Jerry
>>>
>>>
>>> -------- Original Message --------
>>> Subject:     [Fwd: Re: [caiman-discuss] SUNWcsu not the same between 
>>> Opensolaris and Nevada?]
>>> Date:     Tue, 17 Mar 2009 11:56:35 -0700
>>> From:     Paul Southerby <Paul.Southerby at Sun.COM>
>>> To:     Jerry Edwards <Jerry.Edwards at Sun.COM>
>>>
>>>
>>>
>>>
>>>
>>> -------- Original Message --------
>>> Subject:     Re: [caiman-discuss] SUNWcsu not the same between 
>>> Opensolaris and Nevada?
>>> Date:     Tue, 17 Mar 2009 12:04:25 -0400
>>> From:     Dave Miner <dminer at opensolaris.org>
>>> To:     Paul Southerby <Paul.Southerby at Sun.COM>
>>> CC:     caiman-discuss at opensolaris.org
>>> References:     <49BFC21E.4000306 at sun.com>
>>>
>>>
>>>
>>> Paul Southerby wrote:
>>>>
>>>> Hi,
>>>>
>>>> When we installing SUNWcsu on Opensolaris we get
>>>> ksh93 as the default shell for "sh" and "ksh".  When
>>>> we install SUNWcsu on Nevada we get "sh" and "ksh"
>>>> that are NOT ksh93.   We thought that SUNWcsu was
>>>> the same between SUNWcsu and Opensolaris.  Can
>>>> someone please explain this discrepancy?
>>>>
>>>
>>> One of the user environment modernization changes that's been made in 
>>> the OpenSolaris releases is using ksh93 as the system shell.
>>>
>>> Dave
>>>
>>>
>>>
>>> -- 
>>> Jerry Edwards                                   Sun Microsystems Inc.
>>> Manager, Network and Platform QA         12 Network Circle
>>> Phone: (650) 786-4632                           M/S MPK12-126
>>> Fax: (650) 786-2841                             Menlo Park, CA 94025
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> caiman-discuss mailing list
>>> caiman-discuss at opensolaris.org
>>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>>
>> _______________________________________________
>> caiman-discuss mailing list
>> caiman-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> caiman-discuss mailing list
> caiman-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss


Reply via email to