I have a command (phpunit) which has a colored output. According to the watch, command I should be able to use the --color flag to allow color rendering to pass through. However, this isn't working. Is there any other ways of solving this?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||||||
|
|
Here my implementation, it's a bash script but it's very easy convert it to function (to change 'exit' to 'return')
|
|||
|
|

phpunit | cat– enzotib Mar 5 '12 at 15:05phpunit | catdidn't work unfortunately. However the bash script approach worked great. Thanks! – netbrain Mar 6 '12 at 7:45phpunit | catdo not work is a symptom that the problem is inphpunitand not inwatch. – enzotib Mar 6 '12 at 9:17--coloris not a valid flag forwatch. – Stefan Lasiewski Mar 7 '12 at 0:35