Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 198734

Summary: pdksh prompt skips to last newline in emacs mode
Product: Red Hat Enterprise Linux 4 Reporter: Michael Glasgow <michael.glasgow>
Component: pdkshAssignee: Karsten Hopp <karsten>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: benl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0667 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 15:57:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 201655    
Attachments:
Description Flags
emacsmode2.patch none

Description Michael Glasgow 2006-07-13 06:47:05 UTC
Description of problem:

pdksh no longer displays multi-line shell prompts in emacs mode

Version-Release number of selected component (if applicable):

pdksh-5.2.14-30.3

How reproducible:

Set PS1 to any string containing a newline and enable emacs mode.

Steps to Reproduce:

ksh -o emacs
PS1='abc
123 '
  
Actual results:

Prompt looks like:
123

Expected results:

Should look like:
abc
123


Additional info:

The emacsmode patch in 30.3 broke multi-line shell prompts.  Though I'd never 
use such a thing myself, some of our users have been for years, and they want 
the old behavior back.

It looks easy enough to fix (patch attached).

Comment 1 Michael Glasgow 2006-07-13 06:49:57 UTC
Created attachment 132347 [details]
emacsmode2.patch

Comment 15 errata-xmlrpc 2007-11-15 15:57:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0667.html