Re: ksh: histptr and undefined pointer comparisons

2017-09-07 Thread Jeremie Courreges-Anglas
On Thu, Aug 31 2017, Jeremie Courreges-Anglas wrote: > I've noticed this some time ago and, while it doesn't seem to be > a problem in practice, it's still undefined. C says what happens with > pointers: > - within the bounds of an array > - one past the last element of an array > but nothing abo

ksh: histptr and undefined pointer comparisons

2017-08-31 Thread Jeremie Courreges-Anglas
I've noticed this some time ago and, while it doesn't seem to be a problem in practice, it's still undefined. C says what happens with pointers: - within the bounds of an array - one past the last element of an array but nothing about a pointer one element before the first element of an array. T