Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Printf builtin missing v flag support
- X-seq: zsh-workers 37476
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Printf builtin missing v flag support
- Date: Fri, 1 Jan 2016 22:26:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=jwYdTxrj9q6ku7B7HN3xNpawGZ1TyePeEXOqyWJYxy4=; b=pDhV094GreSNPJbiA2GleLdxgACeaChUz0ymnXk2k/TazHmab+OJu5tEfjEQCs8u1d O5DyXRagljdmd6l/T9ZoljL64r6w9GXWyZsrqC9a0BdkPH3NpkhB8k9FsGIimj1lJsIr DJSyShm5ww2gR0hnswO9Rk8ct9gYxoELI/Xpx3WHdHU1nKh2xFUGh8rdfFr4F3heEA7D JE3J9TtHydlrV7M8VXfO/JtF41dx5QsxthaCHpyLGO4rZhYO8WH83hQkfAdFjtL4sFB0 XxGUqJxJE047rTY/EG3XpiaS++PkTg1GZ3GdCJ6hUGSXrmHPWsXxYAsBdE1vFbzJoyN2 ojNA==
- In-reply-to: <151231104858.ZM24513@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <068ca8f5-315b-444c-b281-5f183e1daa8c@email.android.com> <151231104858.ZM24513@torch.brasslantern.com>
On 31 December 2015 at 19:48, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Dec 31, 10:44am, Peter Stephenson wrote:
> }
> } The feature is obviously useful but the print implementation is
> } a nightmare of special cases making it hard to change without
> } considerable refactoring. That would probably be a Good Work, given
> } enough test cases to check it, but is going to have to wait for a
> } volunteer.
> }
> } I haven't checked whether -v is already in use in which case this is moot.
>
> -v is not in use, and the print implementation has already been refactored
> to support the -z and -s options in printf, so this is actually rather
> easy.
Will this work for -x and -X? I requested earlier to make -X/x support
special outputs in order to avoid fork and you only mentioned what
would be needed to make this work. I was looking at printf
implementation and noticed many special cases and have chosen to
request the feature instead of implementing it. If now -x/X will work
with -v it will be great news to me because I will be able to quickly
expand tabs – without a fork or plain Zsh code.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author