Redmar van Leeuwaarden wrote:
[CC:'ing ksh93-integration-discuss at opensolaris.org]
>
> While trying out the AVS (sndr, ii) capabilities in OpenSolaris 2008.05 we
> ran into - what seems to be - an incompatibility between the AVS dscfgadm
> script and the ksh shell used by the script. An incompatibility which is most
> likely introduced with the new ksh shell which handles 'string splitting'
> differently.
>
> The problem occurs in the check_fs_local_grouping function inside the
> dscfgadm script. The script tries to read some svcprop and uses the ${svc}
> variable which is passed to the function as the first parameter. This
> function is called from multiple locations in the script which perform a
> for-loop on the $SMF_ENABLE variable which is defined in the script as
> SMF_ENABLE="nws_scm nws_sv nws_ii nws_rdc nws_rdcsyncd"
>
> In 2008.05 this for-loop on SMF_ENABLE results in a string with the IFS
> separator attached to the string which is passed to the
> check_fs_local_grouping which breaks the svcprop call in
> check_fs_local_grouping.
>
> A simple fix to this problem is to change the assignment of $1 to ${svc} in
> check_fs_local_grouping to include quotes around the assignment which
> bypasses the string interpretation of the shell:
> typeset svc='$1'
>
> To us this seems to be a difference between the ksh versions. Anyone else
> experienced this problem with AVS in OpenSolaris?
Can you post the script (and keep
ksh93-integration-discuss at opensolaris.org in the email loop), please ?
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)