[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bad error message printed when invalid expression specified
From: |
Dave Wilson |
Subject: |
Bad error message printed when invalid expression specified |
Date: |
Thu, 6 Dec 2001 10:43:08 +0000 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i386-suse-linux' -DCONF_VENDOR='suse'
-DSHELL -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I. -I/usr/include -I.
-I./include -I./lib -I/usr/include -O2 -m486 -mcpu=i486 -march=i486
-D_GNU_SOURCE -Wall -pipe
uname output: Linux dial 2.4.4 #4 Wed Nov 28 05:20:27 GMT 2001 i686 unknown
Machine Type: i386-suse-linux
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
I was playing with the shell arithmetic stuff, and happened to type an
invalid expression inside the extended for loop. It turned my terminal into
gobbledegook (fixed with /usr/bin/reset). I assume this is trying to
display a long as a string or something dopey? I leave it in your hands =]
I had also (in the same shell, I believe) used
exec 5> /tmp/screens/S-root/somescreen.pid 6< /tmp/scre..n.pid
Bash is a wonderful thing to play with, keep up the great work =]
Repeat-By:
man bash
[ooh! that looks good, let's try it out..]
[121:fd]# for (( a=0 ; a <= 50 ; a++ 2 )) ; do echo $a; done
^ error lay here
[ I think I was in /proc/$$/fd/ at the time ]
The error message returned is below in hex (xxd -p -r to decode), I captured
it using &> redirect, if that changes anything. This error message is not
one of the ones that made the terminal go nuts.
--CUT--
300a626173683a20a0da1a40a0da1a40103a20612b2b2032203a2073796e
746178206572726f7220696e2065787072657373696f6e20286572726f72
20746f6b656e2069732022322022290a
--CUT--
Other system info (I suppose no script is perfect ;):
cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Celeron (Coppermine)
stepping : 6
cpu MHz : 668.194
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx
fxsr sse
bogomips : 1333.65
---
Linux version 2.4.4 (root@dial) (gcc version 2.95.3 20010315 (SuSE)) #4 Wed Nov
28 05:20:27 GMT 2001
total: used: free: shared: buffers: cached:
Mem: 61882368 56864768 5017600 0 13639680 25784320
Swap: 43343872 151552 43192320
MemTotal: 60432 kB
MemFree: 4900 kB
MemShared: 0 kB
Buffers: 13320 kB
Cached: 25180 kB
Active: 4884 kB
Inact_dirty: 32780 kB
Inact_clean: 836 kB
Inact_target: 16 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 60432 kB
LowFree: 4900 kB
SwapTotal: 42328 kB
SwapFree: 42180 kB
May I also add, I could reproduce it reliably, with it corrupting my terminal
maybe every other time.. different memory addresses?
-dw
--
A little girl goes to the barber shop with her father. She stands next to the
barber's chair, eating a cake while her dad gets his hair cut. The barber
smiles at her and says, "Sweetheart, you're going to get hair on your muffin."
"I know," she replies. "I'm going to get tits too."
pgpGIAJXvJPVg.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bad error message printed when invalid expression specified,
Dave Wilson <=