bug-bash
[Top][All Lists]
Advanced

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

it seems that variables red by builtin function "read" are modified (or


From: Jean-Philippe Ayanides
Subject: it seems that variables red by builtin function "read" are modified (or ignored) during execution
Date: Wed, 25 Apr 2007 16:30:30 +0200
User-agent: Mutt/1.5.9i

From: jp.ayanides@free.fr
To: bug-bash@gnu.org, bash@packages.debian.org
Subject: variables read by builtin funtion read seems to be modified (or 
ignored) during execution

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include 
-I../bash/lib  -g -O2
uname output: Linux holivaw 2.4.27-noloop #1 mer jan 5 12:29:02 CET 2005 i686 
GNU/Linux
Machine Type: i386-pc-linux-gnu

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

Description:
When lauching the following script, it occurs that :
--------------------------------
data=00000000 00000 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
data=abcd
data=efghi
3
--------------------------------
My system is a debian 3.1. The script was correctly running before (maybe en 
update
of bash ?)
mplayer (which is involved in the bug), is in the following version :
MPlayer 1.0rc1-3.3.5 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Model: 7, 
Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


Repeat-By:
Here is the script :
--------------------------------
#!/bin/bash

temp=/tmp/file.$$
cat > $temp << EOF
00000000 00000 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901 abcd
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901234
12345678 01234 6789012345678901234567890123456789012345678901 efghi
EOF

cat $temp | ( while read data;
                do
                echo "data=$data"
                mplayer "inexistant-file.avi"  2>/dev/null 1>&2
                let nb=($nb + 1)
                done
                echo $nb )

rm $temp
--------------------------------

Fix:
        No idea at all to fix it...
        Please tell me back if it is really a bug or not...





reply via email to

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