Bug#594695: Use of shell built-in read behaves different between bash/dash

2010-09-29 Thread Christoph Biedl
Came across this after I filed my bugreport ... Gerald Turner wrote: > Hello, looks like the bug in fw_conntrack is a bashism with the use of > the shell built-in read. bashism is not the right word for it. > $ read MAX < /proc/sys/net/ipv4/netfilter/ip_conntrack_max > > # bash: > $ echo

Bug#594695: Use of shell built-in read behaves different between bash/dash

2010-09-07 Thread Gerald Turner
Hello, looks like the bug in fw_conntrack is a bashism with the use of the shell built-in read. $ read MAX < /proc/sys/net/ipv4/netfilter/ip_conntrack_max # bash: $ echo $MAX 65536 # dash (and zsh too!): $ echo $MAX 6 Surprisingly I couldn't find any info on 'read' behavior with s