Backspace erasing the prompt


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backspace erasing the prompt
# 1  
Old 01-17-2007
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.
# 2  
Old 01-17-2007
I don't have any problem. This is how I have it specified in my .profile -
PS1='${LOGIN} ${PWD}> '
# 3  
Old 01-17-2007
Are you sure you are using ksh?
run:
Code:
echo $0

to check it.
# 4  
Old 01-17-2007
try
set -o vi
or
set -o emacs
# 5  
Old 01-23-2007
Thanks funksen.

Your solution

set -o emacs

did the job as expected.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. OS X (Apple)

Does there exist a UNIX command to prevent docs' versions from uncontrolled erasing on logging in?

So far nobody on ASC, nor anywhere was able to respond to my issue and Google wasn't much of help either. I started to experience the issue some time ago: my OS is Lion 10.7.5. It occurs in all apps that have the function of versioning (iWork which I have updated up to v9.2, namely, Pages 4.2,... (0 Replies)
Discussion started by: scrutinizerix
0 Replies

2. Shell Programming and Scripting

echo backspace

Hello Forum: I am trying to find a meaning to this echo escape character: echo -e "\b" Can someone tell me or give me examples of the effect that this has when used. I know that \b is the backspace, but I cannot visualise it use like any other escape such as: echo -e "\n" Thanks. --Willie (10 Replies)
Discussion started by: willie
10 Replies

3. UNIX Desktop Questions & Answers

backspace in vi search

Hi gurus, i use vi editor. when I want search something I Type / (or ? if i want search backward), that is OK. But when i make mistake in searching string how can i delete character ? I tried bacskpase but did not work (gives just strange characters). Also tried shift+bacskspace but this only... (3 Replies)
Discussion started by: wakatana
3 Replies

4. Filesystems, Disks and Memory

Erasing backup tapes (DLT)

I have a load of DLT tapes I need to scrub and get rid off. Anyone know of any application to erase the tapes before recycling them? I have a Sun StorEdge L9 tape loader which I would like to utilise, so a script or application that can take advantage of doing a load of tapes without manual... (5 Replies)
Discussion started by: son_t
5 Replies

5. Filesystems, Disks and Memory

Erasing hard disk contents using dd or dcfldd

Hi, I am writing a script to wipe my hard disk, in a relatively secure manner by over-writing the disk with 3 patterns. So, I run the dd/dcfldd command 3 times with a sync call in between each command call in the script. #!/bin/sh dcfldd pattern=99 conv=notrunc of=/dev/sda sync dcfldd... (7 Replies)
Discussion started by: jake24
7 Replies

6. UNIX for Dummies Questions & Answers

Control + h and Backspace

Hello, I am a UNIX newbie. With that out of that way.. In order to delete a mistyped character, I need to press control+h to move the cursor to the left, and then overwrite it. If I try hitting the backspace key, it just brings me to a new prompt. Is there a way to change it so that my... (1 Reply)
Discussion started by: martinp973
1 Replies

7. UNIX for Dummies Questions & Answers

erasing portion of line with sed (only once)

hi, I'm trying to use sed to erase everything, up to the first parenthesis. for example: input: blah blah blah (aldj) test (dafs) test test. output: (aldj) test (dafs) test test. how would i do this? I was fooling around with the parenthesis, and i only got it to apply on all parenthesis.... (1 Reply)
Discussion started by: gammaman
1 Replies

8. UNIX for Dummies Questions & Answers

erasing portion of line with sed

hi, I'm trying to use sed to erase everything, and including the ending parenthesis. For example: input: blah blah blah (12355)this is what i want. output: this is what i want. how would i do this? i found an example online that does the opposite: sed \"s|test.*||g\" file1 > file2"; ... (5 Replies)
Discussion started by: gammaman
5 Replies

9. UNIX for Dummies Questions & Answers

erasing old files

Hi, I need to delete all the files before yesterday on a single directoy. Do you help me? TKS. (1 Reply)
Discussion started by: lsquillacioti
1 Replies
Login or Register to Ask a Question