Closed (fixed)
Project:
Drush
Version:
All-Versions-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2009 at 03:29 UTC
Updated:
16 Jan 2010 at 06:00 UTC
I'm trying to execute some PHP code, but I keep getting syntax errors.
drush eval \"db_rename_table(array(), 'actions_old_contrib', 'actions_old_contrib_copy');\"
results in
Parse error: syntax error, unexpected $end in path\to\drush\commands\core\core.
drush.inc(547) : eval()'d code on line 1
The example from the help gets the same error.
drush eval \"variable_set('hello', 'world');\"
// Other variation
drush eval \"variable_set('hello', 'world')\"
Strangely, this works
drush eval phpinfo()
I'm doing this on Windows XP.
Comments
Comment #1
moshe weitzman commentedComment #2
moshe weitzman commentedFixed help text. Was escaping too much.