Bug 28798

Summary: mail(1) with a pager (more) requires fg/Ctrl-Z/fg to restore after suspension with Ctrl-Z
Product: Base System Reporter: str <str>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: str
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description str 2001-07-08 00:40:03 UTC
This happens on a vanila 4.3-RELEASE system.
/usr/bin/mail is used to view
a message that is longer then one screen and the pager (more) is used
If you suspend mail (via Ctrl-Z) in the middle of the paged message,
when you bring it to the foreground (fg) - the screen does not
get  restored, and  the program does not accept any commands.
The only way to bring mail back, is to repeat Ctrl-Z and fg.
I haven't seen this behavior before (4.0 and prior).
Is this somehow related to the new "more"  ?

Fix: 

None available.
Workaround:
Ctrl-Z again and fg again restores the program.
How-To-Repeat: Use mail(1) to read a message that is longer than the screen length,
so the pager is used. Suspend the programs with Ctrl-Z.
Try "fg" to restore it.
Comment 1 Mike Heffner freebsd_committer freebsd_triage 2001-07-29 01:56:01 UTC
Responsible Changed
From-To: freebsd-bugs->mikeh

I'll look into this at some point.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-05-25 22:11:56 UTC
State Changed
From-To: open->feedback

To submitter: is this still a problem with modern versions of FreeBSD?


Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-05-25 22:11:56 UTC
Responsible Changed
From-To: mikeh->freebsd-bugs

mikeh has returned his src commit bit to core for safekeeping.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2006-05-25 22:32:27 UTC
State Changed
From-To: feedback->open

Apparently still a problem.
Comment 5 Mikolaj Golub 2008-12-07 09:02:48 UTC
The problem is reproducible under fbsd6.2 and fbsd6.3 in xterm, but I can't
reproduce it in console.

Under fbsd7.0 fg/Ctrl-Z/fg works ok for me in xterm too.

--
Mikolaj Golub
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2011-02-22 02:45:01 UTC
State Changed
From-To: open->closed

I am unable to reproduce under 8.x and Mikolaj Golub is unable to reproduce on 7.x  If you could reproduce this on a supported branch then please let us know.