Discussion: printf '\e'
Afficher un message
Vieux 25/03/2008, 15h53   #4
Spiros Bousbouras
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: printf '\e'

On 25 Mar, 13:49, Stephane CHAZELAS <this.addr...@is.invalid> wrote:
> 2008-03-25, 04:39(-07), Spiros Bousbouras:
>
> > I noticed that the BASH and Korn printf
> > built-ins output ESC with printf '\e' but
> > the DAsh printf outputs the actual characters.

>
> > With printf '%b' '\e' BASH outputs ESC, while
> > Korn and DAsh output the characters.

>
> > I had a look into POSIX. I'm not sure I've
> > managed to locate all the relevant sections
> > but those I've read do not mention \e as an
> > escape sequence which means that using it is
> > unspecified behaviour. If I'm right then
> > which are the allowed behaviours ?

>
> Only '\a', '\b', '\f', '\n', '\r', '\t', '\v' are standard.


That's what I thought but can an implementation
output anything it wants with \e or is there a collection
of permitted behaviours ?
  Réponse avec citation
 
Page generated in 0,05179 seconds with 9 queries