Harald Hoyer wrote:
On 06/05/2009 01:56 PM, Seewer Philippe wrote:
...
+incol2() {
+ local dummy check;
+ local file="$1";
+ local str="$2";
+
+ [ -z "$file" ] && return;
+ [ -z "$str" ] && return;
+
+ while read dummy check ; do
+ [ "$check" = "$str" ] && return 0
+ done < $file
+ return 1
+}
This better has to be:
- while read dummy check ; do
+ while read dummy check restofline; do
Aye. copy/paste mistake. sorry about that
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html