Bug 832347 - Crontab -e fails
Summary: Crontab -e fails
Keywords:
Status: CLOSED DUPLICATE of bug 822314
Alias: None
Product: Fedora
Classification: Fedora
Component: cronie
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-15 08:28 UTC by Eduard Vopicka
Modified: 2012-06-15 11:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-15 11:43:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Eduard Vopicka 2012-06-15 08:28:59 UTC
Description of problem:

crontab -e fails due to missing /bin/vi when the EDITOR environment variable is not set and exported


Version-Release number of selected component (if applicable):
[root@v5218c3 tmp]# rpm -qf /usr/bin/crontab
cronie-1.4.8-10.fc16.i686
[root@v5218c3 tmp]# 


How reproducible: always


Steps to Reproduce:
[root@v5218c3 tmp]# unset EDITOR
[root@v5218c3 tmp]# crontab -e -u vopicka
/bin/sh: /bin/vi: No such file or directory
crontab: "/bin/vi" exited with status 127
[root@v5218c3 tmp]# 

  
Actual results:
bin/vi: No such file or directory

Expected results:
crontab file opened in vi

Additional info:

There is easy workaround

EDITOR=/usr/bin/vi crontab -e -u vopicka

or

export EDITOR=/usr/bin/vi
crontab -e -u vopicka

but anyway, this is a bug and should be fixed.

Comment 1 Marcela Mašláňová 2012-06-15 11:43:41 UTC
It's bug of vim, you can add karma:
https://admin.fedoraproject.org/updates/FEDORA-2012-8354/vim-7.3.515-2.fc16

*** This bug has been marked as a duplicate of bug 822314 ***


Note You need to log in before you can comment on or make changes to this bug.