Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: If then Prompt
"Brian K. White" wrote:
> From: "Seth Kurtzberg" <seth@xxxxxxx>
> To: <zsh-users@xxxxxxxxxx>
> Sent: Friday, May 25, 2007 9:04 AM
> Subject: RE: If then Prompt
>
> > [ -z "$MYTERM" ] && read -s -t 1 -p `echo -en "\005"` MYTERM # bash
> > only
> > if I could just get rid of those backticks...maybe binary edit the script,
> > never tried...
> >
> > use:
> > ... $(echo -en "\005") ...
>
> It's not the backticks litterally, it's running a child process just to get
> a certain character in a certain spot.
Sorry, I was dozing the first time this came round...
use $'\005' instead of the backtick expression. This works in both bash
and zsh.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author