Bug 1925181

Summary: internal_vim_alias mechanism makes bash jobs commmand useless
Product: [Fedora] Fedora Reporter: Mats Wichmann <mats>
Component: vimAssignee: Karsten <karsten>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 33CC: gchamoul, karsten, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-05 05:08:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mats Wichmann 2021-02-04 14:37:47 UTC
Description of problem:


Version-Release number of selected component (if applicable): vim-enhanced 8.2.2146-2


How reproducible: always


Steps to Reproduce:
Edit a file with vi (or vim). 
Put in background with ^Z. 
Run "jobs"


Actual results:
[1]-  Stopped                 ( test -f /usr/bin/vim && exec /usr/bin/vim "$@"; test -f /usr/bin/vi && exec /usr/bin/vi "$@" )
[2]+  Stopped                 ( test -f /usr/bin/vim && exec /usr/bin/vim "$@"; test -f /usr/bin/vi && exec /usr/bin/vi "$@" )


Expected results: something like:
[1]+  Stopped                 vi /etc/profile.d/vim.sh
[2]+  Stopped                 vi /etc/issue


Additional info: the fancy machinery here completely obscures the ability to see the file being edited if the editor has been job-control stopped.

Comment 1 Zdenek Dohnal 2021-02-05 05:08:47 UTC
Hi Mats,

thanks for reporting the issue!

The fix for this already came into testing repo yesterday, so I'm closing this as a duplicate.

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