? includes/table.inc Index: commands/core/core.drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/core.drush.inc,v retrieving revision 1.119 diff -u -p -r1.119 core.drush.inc --- commands/core/core.drush.inc 23 Sep 2010 00:33:02 -0000 1.119 +++ commands/core/core.drush.inc 29 Sep 2010 19:07:14 -0000 @@ -676,7 +676,7 @@ function drush_core_php_script() { // List all available scripts. $all = array(); foreach($searchpath as $key => $path) { - $recurse = !$key == 'cwd'; + $recurse = !(($key == 'cwd') || ($path == '/')); $all = array_merge( $all , array_keys(drush_scan_directory($path, '/\.php$/', array('.', '..', 'CVS'), NULL, $recurse)) ); } drush_print(implode("\n", $all)); @@ -705,7 +705,12 @@ function drush_core_php_script() { } function drush_core_php_eval($command) { - eval($command . ';'); + if ($command == '-') { + eval(stream_get_contents(STDIN)); + } + else { + eval($command . ';'); + } } /** @@ -901,4 +906,4 @@ EOD; } return $bashrc_data; -} \ No newline at end of file +}