some problem of bash shell.

character \015 (carrage return) 

perl -pi.bak -e "s/\r//g;" fileencode.pl

After run this command, the issue will be fixed

And also find another problem,  if you pass one parameters from one shell to another shell, if the paramter contain "blank", it will not work as normal shell

Solution.  php xxx.php bb.php "$argv", then exmplode $argv with blank

If you type parameters ,you need to type

findcake -title "aa bb"

猜你喜欢

转载自wuchengyi.iteye.com/blog/2111590