Discussion: printf '\e'
Afficher un message
Vieux 25/03/2008, 13h47   #2
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: printf '\e'

Spiros Bousbouras wrote:
> 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.


Kornshell's printf man page says \E is ESC.

Janis

>
> 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 ?

  Réponse avec citation
 
Page generated in 0,04691 seconds with 9 queries