Joined July 2012
·
Posted to
An easy way to test php syntax in shell
over 1 year
ago
Thanks for your comment. I am a noob in shell but I prefer your method in the find, but i can't use the -exec option form more of one line, I need to continue using xargs. My new version of the command:
find * -type f -name '*.php' | xargs -I x php -l x 1> /dev/null
In the same way, if it not return nothing all is ok, but now if we have errors the output is better
A good video tutorial about some oh-my-zsh features:
http://www.youtube.com/watch?v=m07MiM6rmMc