[Samba] CR instead of CR/LF

John T. Benedetto jbenedet at unm.edu
Tue Feb 19 19:04:08 GMT 2002


On Tue, 19 Feb 2002, Brent Ayers wrote:

> When I copy Perl scripts from my Windows 2000 machine to the UNIX Samba
> share on that same machine, a CR/LF appears at the end of each line instead
> of just the CR, making UNIX unhappy when I go to run those scripts.
>
> Any way to have Samba strip the LF from the end of each line?

Nope.

This is a recurring question, and a known issue of DOS/Windows versus Un*x
(*not* an issue with Samba).  In fact, there is a .txt file in the docs
that were installed with your Samba distro addressing this very issue.

There are a mryiad of possible ways to deal with this on the Unix side.
You can just make a script to run your Perl files through.

- john







More information about the samba mailing list