April Chin writes:
> > Incompatibility (9)...  Does this mean pattern matching in the same
> > statement/command?  Or subsequently for the rest of the script?  Sounds
> > like a bug.
> 
> >From the COMPAT file:
> 
> 9) In ksh93, pattern matching following a redirection symbol works only
>    in interactive shell, not in scripts.
> 
> The above refers to pattern matching in the same statement.
> For example, in a ksh93 script, "echo hi >> foo*" will write to the file
> literally named "foo*" rather than to a file whose name matches the pattern
> (starts with the string "foo")  In Solaris ksh, the same script will 
> write to a file matching the pattern.  I'll add the example.

That one is a surprising change, particularly so because it's
dependent on something apparently unrelated to the problem (the result
of isatty(0), I assume).  I think it'll need to be discussed in the
context of that future ksh replacement case.

-- 
James Carlson, KISS Network                    <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to