bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launched by rungetty bash breaks terminal input interpretation upon runl


From: Dumas Patrice
Subject: launched by rungetty bash breaks terminal input interpretation upon runlevel change
Date: Mon, 3 Dec 2001 17:11:11 +0100
User-agent: Mutt/1.2.5i

Hi,

I am not sure it is bash problem, however it is possible. My setting is redhat
7.0, i386. I am on a terminal without hard drive, which mounts its root
filesystem with nfs, and has a 2.4.9 kernel.

Here is the story. I have the following /etc/inittab:

#to show the problem
1:3:respawn:/sbin/rungetty tty1  -u root -g root --noclear -- /bin/bash --login 
4:4:respawn:/sbin/rungetty tty1  -u root -g root --noclear -- /bin/start_test

#to be able to change runlevel
2:3:respawn:/sbin/rungetty tty2  -u root -g root --noclear -- /bin/bash --login 
5:4:respawn:/sbin/rungetty tty2  -u root -g root --noclear -- /bin/bash --login 
#end inittab

/bin/start_test is the following script:

#!/bin/sh
set -x
read dummy
#end bin/start_test

When I come to runlevel 3 and then to runlevel 4, the <return> and <<---->
(<backspace>, <delete> ?) are not correctly interpreted by the read, they give 
^M and ^? (which corresponds to their ascii values, if not wrong). 

Does someone know why it is so ?
Is it a bash bug ?
Is there a workaround ?

I haven't tested this with a full linux standalone box, because I don't want to 
have to rescue it, but I could if needed.

Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]