Olga,

I'm not so sure about the "clearly" part, since there's no documentation to support the claim that typeset -n can't be used with any other option, but I can live with that, and there are ways to get the same behavior with two typeset commands. But users who have lots of scripts that assume the old behavior will now have to go and change them, which is too bad.

What does typeset -m do? This option is not documented in the ksh man page (shipped with ksh-20100202-1.el5_5.1).

Thanks,
Herbert.


On 08/02/2011 10:57 AM, ольга крыжановская wrote:
Herbert, this is clearly [1], the old versions had a bug.

If you want to rename a variable use typeset -m, e.g. typeset -m
newname=oldname.

Olga

On Tue, Aug 2, 2011 at 7:52 PM, Herbert van den Bergh
<[email protected]>  wrote:
David,

What is your position on this change in behavior?

1. The ksh-93s behavior is a bug, and it is fixed in the latest versions,

or

2. the old behavior is the desired behavior, and the new versions have a
bug.

Thanks,
Herbert.


On 07/28/2011 08:25 AM, Herbert van den Bergh wrote:
On 7/28/11 6:46 AM, David Korn wrote:
It looks like typeset -u -n used to work in 93s, but has been broken
since 93t.  Is this expected, or a bug?


Did you mean
    typeset -u -i
for unsigned integer?  The -n option means name reference and doesn't
work with other options.
No, I meant typeset -u -n.  As you can see in the example, it did work in
previous ksh versions.  It converts the referenced name to uppercase.  Any
particular reason this behavior was removed?

Thanks,
Herbert.
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers




_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to