Mail Archives: djgpp/2000/09/22/04:31:20
In article <t6blss4n9j6291tk0pacucm84l3utcitm1 AT 4ax DOT com>,
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
> On Thu, 21 Sep 2000 23:08:19 GMT, please hold <not_quite AT my-deja DOT com>
> wrote:
>
> > Did WindowsME break HTML Tidy
> >
> > [http://www.w3.org/People/Raggett/tidy.exe]
> >
> > and/or DJGPP?
>
> Quite likely. They're DOS programs, and Windows ME isn't DOS; it's
> Windows.
>
> > For a long time, I have been using the DGPP bash shell to segregate
> >HTML Tidy's stderr and stdout output by invoking tidy.exe from a
command
> >line of the form
> >
> > % tidy < input.html > output.html > errs.1
> >
> > Since I installed Windows ME, however, this no longer works.
> >
> > What I get is what I would expect to get if I had used the command
> >line
> >
> > % tidy < input.html > output.html 2>&1
> >
> >i.e., stderr is merged with stdout.
> >
> > Anyone else seen this?
>
> Have you played with redir.exe from DJGPP? redir.exe can redirect
> stderr for DJGPP programs (and maybe even for other DOS programs; I
> haven't checked).
>
> --
No, I hadn't, but I ran a test:
Input file `junk.html'
----------------------
<a xyz=*@#$%>whatever<q>
Command line
------------
$ redir -o barf.html -e errs.1 tidy junk.html
Output file `barf.html'
------------------------ quote ------------------------------
Tidy (vers 4th August 2000) Parsing "junk.html"
line 1 column 1 - Warning: inserting missing 'title' element
line 2 column 1 - Warning: missing </q>
line 2 column 1 - Warning: trimming empty <q>
line 2 column 1 - Warning: missing </a>
junk.html: Document content looks like HTML 4.01 Transitional
4 warnings/errors were found!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title></title>
</head>
<body>
<a xyz="*@#$%">whatever</a>
</body>
</html>
HTML & CSS specifications are available from http://www.w3.org/
To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
Please send bug reports to Dave Raggett care of <html-tidy AT w3 DOT org>
Lobby your company to join W3C, see http://www.w3.org/Consortium
------------------------- unquote ----------------------------------
Output file `errs.1'?
---------------------
file `errs.1' is empty!
~~~~~~~~~~~~~~~~~~~~~~~
stderr is merged with stdout!
Looks like DJGPP may have to rebuild everything under Windows ME to
clear up this mess.
--
Access to the real command line is like all freedoms:
once you let the software police take it away,
you'll never see it again.[See also http://knights.rave.org/]
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -