windows 10 - Show colors in output of bash script or bash -c -


i'm using new bash shell on windows 10, i'm pretty sure happens on platforms.

 $ ls a.out 

a.out green.


 $ bash -c "ls" a.out 

here, a.out normal colored.

how second case behave first?

you have enable colors:

 bash -c "ls --color=auto" 

try also:

bash -i -c ls 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -