lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev arguments from stdin


From: Gisle Vanem
Subject: Re: lynx-dev arguments from stdin
Date: Sat, 3 Jun 2000 01:04:44 +0200 (CEST)

Thomas Dickey <address@hidden> said:

> On Tue, May 23, 2000 at 02:08:44PM +0200, Gisle Vanem wrote:
> > A command line like "lynx - < file" where file contains an URL no
> > longer work in the DOS/djgpp of 2.8.4dev.2.
>
> I'm puzzled by this, because I don't see how it could have worked before
> either.

The "lynx -< file" method works with this diff for LYmain.c at around
line 1120:

        while (LYSafeGets(&buf, stdin) != 0) {
            char *noargv[2];

            noargv[0] = buf;
            noargv[1] = NULL;
            LYTrimTrailing(buf);

+           if (buf[0] != '-' ||
+               (buf[0] != '\0' && parse_arg(&noargv[0], 2, (int*)0) == FALSE)) 
{
-           if (parse_arg(&noargv[0], 2, (int*)0) == FALSE)
-              && buf[0] != '\0') {
                char *argument = NULL;

Without knowing what this could break, I'll leave it to others to integrate
it.

(sorry, no diffs against the official version cause I've done my private
changes too).

Gisle V.


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]