bug-bash
[Top][All Lists]
Advanced

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

Variable undefines - bug or feature?


From: Denis Melnikov
Subject: Variable undefines - bug or feature?
Date: Mon, 23 Jan 2012 23:58:21 +0400

Hi,
after the following fragment of code named variable gets empty:

ls | while read file ; do
  v=1
  break
done
echo $v

Is it a bug or a feature?
GNU bash, version 4.1.2(1)-release

Denis



reply via email to

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