Maybe there is trailing whitespace at the end of $line (and then in $build)?
You should output the full name of the file you are checking.
In reply to Re^3: Porting Code from windows to *nix help
by Corion
in thread Porting Code from windows to *nix help
by mrbbq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |