Skip to content

Commit

Permalink
Make 'builtin' test in core-cli more resilliant on platforms such as …
Browse files Browse the repository at this point in the history
…Debian where sh is dash instead of bash by default
  • Loading branch information
greg-1-anderson committed Jan 12, 2011
1 parent 0149d36 commit 70e5100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/core.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ EOD;
// or builtin (e.g. 'eval') with drush aliases.
if ((strpos($key, ' ') === FALSE) && (!in_array($key, $cli_ignore))) {
$conflict = FALSE;
$is_shell_builtin = (drush_shell_exec("builtin $key") == "1");
$is_shell_builtin = (drush_shell_exec("bash -c \"builtin $key\"") == "1");
if (!in_array($key, $cli_overrides)) {
$status = drush_shell_exec("which $key 2>&1");
if ($status !== FALSE) {
Expand Down

0 comments on commit 70e5100

Please sign in to comment.