On Sun, 2010-07-25 at 00:08 -0700, Clyde Reed wrote: > bash: ./version-check.sh: /bin/bash^M: bad interpreter: No such file > or directory
Did you create the script with a Windows text editor such as Notepad? The error above occurs when running a script that's been saved with Windows-style end-of-line characters - the ^M above is a carriage-return character, which Windows uses along with a line-feed to indicate end-of-line. On Unix, only the LF is used, and the CR becomes part of the preceeding line. Simon.
signature.asc
Description: This is a digitally signed message part
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page