On Wed, Dec 23, 2009 at 07:42:20PM -0500, Tom Jobbins wrote:
> Have a look at :
> http://www.unixshell.us/shell-scripting/ksh-quoting-block-t1034.html - which
> seems to describe an issue identical to yours.

I'm curious: I can reproduce this in ksh88 only.


> The user there:
> a) Was using the same 1993-12-28 ksh93 as you are on Solaris
> b) Was executing sqlplus in a $()
> c) Had issues with quoting of the command passed to sqlplus
> d) Found the issue resolved when he used backticks instead.

Nitpick: actually he was not using ksh93.  The quoting issue only appeared
in his ksh88.  When trying ksh93, he had yet other issues with his scripts.


> Now, the version of ksh93 you are running on Solaris is far older than the
> one you have on Linux:
> 
> > Linux [...] Version M 93s+ 2008-01-31
> 
> > SunOS [...] Version M 1993-12-28 s+

They look the same to me, expcept that the original date is
shown on Suns (some might be used to this, because ksh88 always did so).
The actual release date is printed on Suns, too, since the t release.

I tried the following in ksh93-d and -n+, I had handy.
echo $(cat << EOF
     "double quotes"
     'single quotes'
EOF
) 
and the quotes remained unchanged.
And I couldn't find a matching entry in the changelogs of ksh93.

But in all ksh88 releases I know, the single quotes change into double quotes.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to