bug-bash
[Top][All Lists]
Advanced

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

problem with $(</proc/net/route) on amd64


From: Aron Griffis
Subject: problem with $(</proc/net/route) on amd64
Date: Thu, 14 Jul 2005 18:18:13 -0400
User-agent: Mutt/1.5.8i

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -O0 -ggdb -pipe
uname output: Linux olive 2.6.11-gentoo-r4 #4 Mon May 16 10:19:39 EDT 2005 
x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
        Using bash internals to read /proc/net/route on amd64 stops
        reading at the end of the first line.  Tested on bash-3.0-16
        on Gentoo and Debian.  Also tested on alpha, ia64 and x86,
        none of which exhibit the problem.

        Copying the pseudo-file from /proc to another location works
        as expected.  It's only when reading directly from /proc that
        the problem appears.

Repeat-By:
        $ echo "$(</proc/net/route)"
        Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  
Mask            MTU     Window  IRTT                                            
           

        $ cat /proc/net/route
        Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  
Mask            MTU     Window  IRTT                                            
           
        eth0    0000000A        00000000        0001    0       0       0       
0000FFFF        0       0       0                                               
                                
        lo      0000007F        00000000        0001    0       0       0       
000000FF        0       0       0                                               
                                  
        eth0    00000000        0600000A        0003    0       0       0       
00000000        0       0       0                                               
                                





reply via email to

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