freebsd / atf

Libraries to write tests in C, C++ and shell
Other
133 stars 45 forks source link

atf-check_test.sh workarounds don't work for rebranded versions of Darwin/FreeBSD/Linux; \e should be replaced with a more standard spelling, e.g. \033 #16

Closed ngie-eign closed 10 years ago

ngie-eign commented 10 years ago

The code in atf-check_test.sh implement workarounds for OSes because...

# XXX Ugly hack to workaround the lack of \e in FreeBSD. Also, \e doesn't
# seem to work as expected in Linux. Look for a nicer solution.

"\e" is not in the POSIX standard, i.e. is only implemented on NetBSD AFAICT. It would be better to use the full spelling for "\e", i.e. "\033".