Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: C_BASES option for outputting hex and octal
- X-seq: zsh-workers 12600
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: C_BASES option for outputting hex and octal
- Date: Sat, 12 Aug 2000 16:46:46 +0100
- In-reply-to: "Zefram"'s message of "Fri, 11 Aug 2000 21:16:03 BST." <E13NLDn-0005KX-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Zefram wrote:
> Wouldn't it be nicer to have $(([#0x]$num)) do the 0x-prefixed output,
> or some equivalent syntax? It'd be nicer not to have to fiddle with a
> global option to control an essentially local decision.
Well, there is a local fix for this, and it was being fed up with having to
use it when all I wanted was what seemed to me the standard output that
made me fix it this way. If the usual output wasn't so non-standard I
wouldn't have thought about it. But the [#0x] idea is a good one (and I
supposed `typeset -i 0x foo' would be a natural companion, though option
argument passing for builtins is currently horrible).
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author