The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
backspace deletion hpux 11i jestinabel HP-UX 12 02-01-2007 12:54 PM
erasing portion of line with sed (only once) gammaman UNIX for Dummies Questions & Answers 1 07-14-2005 05:40 PM
erasing portion of line with sed gammaman UNIX for Dummies Questions & Answers 5 07-10-2005 07:47 PM
Cannot backspace on my session in CRT rooh UNIX for Dummies Questions & Answers 2 07-08-2004 08:09 AM
erasing old files lsquillacioti UNIX for Dummies Questions & Answers 1 04-10-2001 11:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-17-2007
Registered User
 

Join Date: Aug 2004
Posts: 141
Backspace erasing the prompt

My AIX has Korn Shell. I had set the prompt by providing assigning to PS1. If on the prompt I use backspace it erase the whatever appeared due to PS1. Can someone tell me how to forbid this erasing of prompt string, with this behaviour?

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 01-17-2007
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 185
I don't have any problem. This is how I have it specified in my .profile -
PS1='${LOGIN} ${PWD}> '
Reply With Quote
  #3  
Old 01-17-2007
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Are you sure you are using ksh?
run:
Code:
echo $0
to check it.
Reply With Quote
  #4  
Old 01-17-2007
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 232
try
set -o vi
or
set -o emacs
Reply With Quote
  #5  
Old 01-23-2007
Registered User
 

Join Date: Aug 2004
Posts: 141
Thanks funksen.

Your solution

set -o emacs

did the job as expected.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0