bug-bash
[Top][All Lists]
Advanced

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

[odd behaviour with odd characters]


From: Anto C
Subject: [odd behaviour with odd characters]
Date: Sun, 25 May 2003 23:18:10 +0200
User-agent: KMail/1.5

From: anto.cvitic@telia.com
To: bug-bash@gnu.org
Subject: [odd behaviour with odd characters]

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE$
uname output: Linux dahling 2.4.18 #1 Sun Apr 13 13:22:05 CEST 2003 i686 AMD 
Duron(tm) processor AuthenticAMD GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        [I think bash screws itself when doing like this:
        first su to another user, root for say, them run a valid command
        followed by -på for example, where å is any special character likem 
åÄäöÖ
        pressing enter and then push the up key to retrive the command again
        place the cursor on å and delete p with backspace. tada. bash crashes, 
and su with it, not saying
        anything, and the shell is all screwed.. pushing enter will show the 
bababa$ again with no newline
        you wont see what you are typing... but it does accept commands. 
anyways.. if you
        do it with just one bash started it will crash, if its started in 
xterm xterm will crash.
        i think it has something to do with the special chars, maybe somewhere 
in the
        code you are doing a-z && A-Z which does not include åöäß. i dont have 
time to check
         this further but i dont belive its a big thing,, but it is an odd bug 
;)]

Repeat-By:
        [1. fire up an konsole/eterm/xterm
         2. su to root for say.
         3. type cat -på test
         4. after enter push upkey to see the command again
         5. push leftkey to put the cursor on å
         6. push backspace to delete p
         7. voila. ]

Fix:
        [i dont know how to fix this problem. but i suggest(i think) its
         the norlam use of a-z A-Z.. which does nt include åäö i think.
         a fix whould be to do whatevervalueAhas in ints - 
upperIntwhichincludesÅäö something]






reply via email to

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