comp.emacs-odd_solution_to_the_DOS_control_M_hassle

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: lhabert@clipper.ens.fr (Luc Habert)
Newsgroups: comp.emacs
Subject: Re: emacs converting perl script to file type DOS?
Date: 20 Jan 2003 17:30:42 GMT

"John Sage"  :

> Twice now in recent days I have been editing or creating a perl script
> within emacs 20.5.1 and find that the script has become ID'd by emacs as
> file type "DOS"

That means your lines end with a `^M^J' pair instead of simply `^J' as is
standard in unix. Seeing that, emacs automatically converts the EOLs, but it
undoes the conversion when you save.

> The issue is that bash generates a "[script] - No such file or directory"
> error upon execution -- yes, it's executable, etc etc...

This is normal : the first line of your script is something like

#!/where/is/perl^M

And there is no file named `perl^M', so that the kernel cannot find the
interpreter, which is the meaning of the 

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu