Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "cat -v" in zsh (and a minor bug)



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