command command
# ls
awk complete2.sh complete.sh downloads medrec-1.1 ps.sh rmmod.sh test.sh url.sh
# command ls
awk complete2.sh complete.sh downloads medrec-1.1 ps.sh rmmod.sh test.sh url.sh
Now command executes a command yeah " Run command with args suppressing the normal shell function lookup"
So my deduction is color gotta be a shell function ;)
awk complete2.sh complete.sh downloads medrec-1.1 ps.sh rmmod.sh test.sh url.sh
# command ls
awk complete2.sh complete.sh downloads medrec-1.1 ps.sh rmmod.sh test.sh url.sh
Now command executes a command yeah " Run command with args suppressing the normal shell function lookup"
So my deduction is color gotta be a shell function ;)
1 Comments:
Color in ls is only applied when ls thinks it's being run interactively. Since you're envoking it from another program, it does not think that is the case. To override the auto-sensing behavior, try "ls --color=always"
Post a Comment
<< Home