[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printf %*s bug

From: Andrew Schepler
Subject: printf %*s bug
Date: Thu, 26 Jul 2001 22:44:23 -0400
User-agent: Mutt/1.3.18i

printf(1) of the shell-utils stuffs has a bug that appears when a
conversion code fails to convert a number argument with '*' and then
attempts to print a string anyway.

printf %*s a foo
printf %.*s text asdf

Both of these will typically print garbage to the terminal, sometimes
munging things up to require a 'reset'. They will occasionally result in
the death of their parent shell.

Andrew Schepler

reply via email to

[Prev in Thread] Current Thread [Next in Thread]