ANSI escape codes in printf don't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Run this -

    /usr/bin/printf '\x1b[31m%s\x1b[m\n' FAIL

It should print FAIL in red foreground color.
It does, on other shells.
In dash, it doesn't.



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux