lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV ~ -> $HOME in local URLs


From: John E. Davis
Subject: Re: LYNX-DEV ~ -> $HOME in local URLs
Date: Thu, 12 Jun 1997 11:48:05 -0400

On Thu, 12 Jun 1997 06:46:00 -0700 (PDT), Mike Brown <address@hidden> said:
>> There's a very annoying bug in lynx 2.6 and 2.7: "~"s anywhere in
>> local URLs get substituted by $HOME, so that, for example,
>
>It is not a bug, and has nothing to do with Lynx, actually.  Your shell
>parses the line and makes filename substiutions before executing the
>command. Quoting to defeat filename substituation by the shell is a
>tricky business sometimes.  If you put the URL in "quotes" you shouldn't
>have a problem.

This must be shell dependent.  For example, tcsh only expands ~ if it
is the first character:

[11:45am] /nfs/wiwaxia/h1/davis>echo ~
/nfs/wiwaxia/h1/davis
[11:45am] /nfs/wiwaxia/h1/davis>echo ~davis
/nfs/wiwaxia/h1/davis/davis
[11:45am] /nfs/wiwaxia/h1/davis>echo X~
X~
[11:45am] /nfs/wiwaxia/h1/davis>echo http://~davis
http://~davis

So, if the shell is tcsh, the quoting is not necessary.

--John

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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