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
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedIn 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.Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedFixed this per #1.
Comment #3.0
(not verified) CreditAttribution: commentedMinor updates to format and layout