Re: [ast-users] [[ -v x.MAX ]] returns 0 if x is an integer variable

2013-10-07 Thread David Korn
Subject: Re: [ast-users] [[ -v x.MAX ]] returns 0 if x is an integer variable



 The -v test operand does not work for i.MAX if i is a constant of an
 integer type:
 ksh -c 'integer i; [[ -v i.MAX ]]  echo var is there'
 
 Language version is the latest:
 ksh --version
   version sh (ATT Research) 93v- 2013-09-23
 
 Tina
 

This is correct.  i.MAX is an arithmetic constant whose value is MAX for the
typeof variable i.  It is not a variable.

David Korn
dgk...@gmail.com
m
David Korn
dgk...@gmail.com
___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users


[ast-users] [[ -v x.MAX ]] returns 0 if x is an integer variable

2013-09-28 Thread Tina Harriott
The -v test operand does not work for i.MAX if i is a constant of an
integer type:
ksh -c 'integer i; [[ -v i.MAX ]]  echo var is there'

Language version is the latest:
ksh --version
  version sh (ATT Research) 93v- 2013-09-23

Tina
-- 
Tina Harriott  - Women in Mathematics
Contact: tina.harriott.m...@gmail.com
___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users