$ 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

okokokok’s picture

Possibly 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

greg.1.anderson’s picture

Status: Active » Fixed

Fixed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.