Problem:
Running the command:
# drush core-config
and selecting #1 (tried them all - where #1 is selected from: [1] : /etc/php5/cli/php.ini )
I get back
sh: /etc/php5/cli/php.ini: Permission denied

Environment:
Debian Linux (6)
Drush 5.8

Reason:
After reviewing the code for a bit, I found in "function drush_core_cron()"
this fragment
... drush_shell_exec_interactive('$EDITOR %s '  ...
The reference to $EDITOR assumes that there is a valid editor of choice.
So, with a non-existent bash variable 'EDITOR', it fails with the Permission denied.

Resolution:
Add the 'EDITOR' variable in one of your .bashrc, .profile, etc... files, fixes the problem.

Comments:
I would recommend a validation of the $EDITOR variable in the code and provide a more informative message.

I will look into providing that patch in the near future.

This is documentation only.

Comments

Version:7.x-5.8» 8.x-6.x-dev
Status:Active» Patch (to be ported)

In Drush 8.x-6.x, this has already been changed to ${VISUAL-${EDITOR-vi}}. I suppose this could be back-ported to the 7.x-5.x branch if someone wanted to test it and roll a patch.

Version:8.x-6.x-dev» 7.x-5.x-dev
Status:Patch (to be ported)» Fixed

Fixed this per #1.

Status:Fixed» Closed (fixed)

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

Issue summary:View changes

Minor updates to format and layout