[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed for non-DOS files
From: |
Eli Zaretskii |
Subject: |
Re: sed for non-DOS files |
Date: |
Mon, 04 Feb 2002 21:19:59 +0200 |
> From: Roger Spellman <address@hidden>
> Date: Mon, 4 Feb 2002 13:40:22 -0500
>
> I do not know who ported my version of sed to windows, but it appears that
> he/she has added this annoying "feature", to make all files look like DOS
> files.
This is not an add-on feature, it's how the normal text-mode output
works in the absolute majority of DOS/Windows implementations of the
standard C library. The reason is that some native Windows tools,
including the stock Windows shell itself, don't grok Unix-style text
files where each line ends in a single \n character. For example, if
you edit a batch file with Sed, and the result is a Unix-style file,
the Windows shell will not run it.