Anders Johansson wrote:
When doing
printf '%0s' foo
ksh-93u segfaults. The ANSI standard says the 0 flag invokes undefined
behaviour for essentially anything non-numeric, but even so, should it
segfault, ever?
FWIW, no segfault on UnixWare:
$ uname -a
UnixWare uw7 5 7.1.4 i386 x86at SCO UNIX_SVR5
$ ksh --version
version sh (AT&T Research) 93u 2011-02-08
$ echo ${.sh.version}
Version JM 93u 2011-02-08
$ ksh -c "printf '%0s' foo"
foo$ echo $?
0
$ printf '%0s' foo
foo$ echo $?
0
The ksh93u binary is installed via a vendor patch.
scot
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers