[Top][All Lists]

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

lynx-dev djgpp bash test

From: Gisle Vanem
Subject: lynx-dev djgpp bash test
Date: Tue, 7 Oct 2003 01:48:28 +0200

The latest patch at Tom's site had this patch in LYmain.c:

+    if (((cp = LYgetenv("SHELL")) != NULL)
+      && (strstr(cp, "sh") != NULL))
+       dj_is_bash = TRUE;

This should be more robust IMHO (in case of
SHELL=c:\shared\stuff\ How about:

  if (((cp = LYgetenv("SHELL")) != NULL)
      && (strstr(cp, "/sh") != NULL || strstr(cp, "/bash") != NULL))
       dj_is_bash = TRUE;

My bash (v 205b.0) sets SHELL itself to
/dev/env/DJDIR/bin/bash.exe whether it's started as
bash or sh. So maybe just check for "bash.exe"?

Gisle V.

# rm /bin/laden 
/bin/laden: Not found 

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

reply via email to

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