Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "cat -v" in zsh (and a minor bug)
- X-seq: zsh-workers 8058
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: "cat -v" in zsh (and a minor bug)
- Date: Sun, 26 Sep 1999 20:15:17 +0000
- In-reply-to: <9909261431.AA27874@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9909261431.AA27874@xxxxxxxxxxxxxxxxx>
On Sep 26, 4:31pm, Peter Stephenson wrote:
} Subject: Re: "cat -v" in zsh (and a minor bug)
}
} "Bart Schaefer" wrote:
} > The bug is demonstrated by:
} >
} > a='å' # That's meta-a, or 228 decimal
} > (( #a == #\å )) || echo oops
}
} Seems to be 229, here.
Typo.
} Here's a function that allows you to enter a numeric argument to get a
} character with a given number, sort of like quoted insert. Have I missed
} something simpler (i.e. can you really not process a character code in
} decimal)?
Right, you can't process a character code in decimal. You could do it in
octal rather than hex, but that doesn't help much.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author