this is a bug in the sfio extension %0<width>s
%010s lists at most 10 chars from the string arg
if the string is longer it will list the trailing n chars from the string
it didn't handle the case where <width> is omitted
it will be fixed in the next release
thanks

and yes, outside of debugging/testing, segfault is not a valid behavior

On Fri, 21 Oct 2011 10:46:09 +0200 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?

> Anders

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

Reply via email to