$ drush php-eval 'print "";' # OK
$ drush cli
drush> php-eval 'var_dump(0);' # OK
int(0)
drush> php-eval 'print "";' # NOK
Parse error: syntax error, unexpected ';' in /opt/drush/commands/core/core.drush.inc(603) : eval()'d code on line 1
$ drush php-eval 'print "";' # OK
$ drush cli
drush> php-eval 'var_dump(0);' # OK
int(0)
drush> php-eval 'print "";' # NOK
Parse error: syntax error, unexpected ';' in /opt/drush/commands/core/core.drush.inc(603) : eval()'d code on line 1
Comments
Comment #1
okokokok commentedPossibly a similar problem with sql-query:
drush> sql-query 'select nid from node limit 1;'
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
drush> exit
$ drush sql-query 'select nid from node limit 1;'
nid
5
Comment #2
greg.1.anderson commentedFixed. Thanks.