Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: printf "%i\n" 7 outputs extra newline
- X-seq: zsh-users 12981
- From: Omari Norman <omari@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: printf "%i\n" 7 outputs extra newline
- Date: Wed, 18 Jun 2008 20:40:26 -0400
- In-reply-to: <20080619002138.GA14616@cameron>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080619002138.GA14616@cameron>
On Wed, Jun 18, 2008 at 08:21:38PM -0400, Omari Norman wrote:
> Greetings,
>
> When I run
>
> printf '%i' 7
>
> I get a 7, but with a newline both before and after it. I get the same
> thing if I use /usr/bin/printf (by first running disable printf.)
Forget I asked; it has something to do with my preexec function, which I
have set up to display command text in my title bar. Seems that newline
command is "leaking" out of that function, if you could say that...after
clearing out the preexec function, the printf works as expected.
--Omari
Messages sorted by:
Reverse Date,
Date,
Thread,
Author