Allen C BrownMon Jun 6 11:14:19 PDT 2005
A guy here at work created a file in vim on an NFS mounted filesystem. The first line was #!/bin/bash As long as that line was there the script failed with : bad interpreter: No such file or directory I pulled it up in emacs, figuring that any control chars would be visible. Nothing. After beating on it for a long time I finally ran cat -v bash_test and saw the nasty \r in the lines. I am pissed off that some bozo changed emacs so that it now gives no indication of this problem. And it doesn't show DOS mode or anything in the status line. And vim did the same thing. Both editors preserved the CR chars. Any clues how this could have happened? Vim should never have created a DOS file in the first place. But emacs should then have exposed the insanity. We are running 2.4.21-27.0.1.ELsmp under RHE3. -- Allen Brown work: Agilent Technologies non-work: http://www.peak.org/~abrown/ allen_brown at agilent.com abrown at peak.org Anyone can make a device work. It takes an engineer to make it *barely* work. --- A.B.