$ uname -a Linux thmdtdev15 2.6.9-67.ELlargesmp #1 SMP Wed Nov 7 14:07:22 EST 2007 x86_64
$ /bin/ksh --version version sh (AT&T Labs Research) 1993-12-28 q Install the bug.sh script from inside the attached tar file *exactly* as is and run the following script to demonstrate the bug: #!/bin/ksh perl -pe ' ' <bug.sh >bug_copy.sh; chmod 755 bug_copy.sh; one=$(bug_copy.sh) perl -pe 's/x//' <bug.sh >bug_copy.sh; chmod 755 bug_copy.sh; two=$(bug_copy.sh) [[ $one = "$two" ]] && echo "NO BUG" [[ $one = "$two" ]] || echo "BUG" rm bug_copy.sh Just perturbing the script by one character (e.g. by removing the "x" character) causes the bug to go away. I'm not quite sure what's going on here, but maybe someone can debug it? The script bug.sh should be 24597 bytes long. -- John Wiersba
bug.tar
Description: bug.tar
_______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
