Subject: Re: pl-3.2.9 could not load .plrc ?

From: Jan Wielemaker <[email-masked]>
Date: Mon, 13 Sep 1999 12:33:55 +0200

On Thu, 19 Aug 1999, Uwe Lesta wrote:
>Hi,
>
>I had compiled swi-prolog from the actual sources 3.2.9
>on windows VC++ 6.0.
>
>but plwin could not load my .plrc file on startup.
>
>
>?- consult('d:/lesta/.plrc').
>Hallo Uwe
>d:/lesta/.plrc compiled, 0.00 sec, 724 bytes.
>
>BUT
>
>Yes
>1 ?- consult('~/.plrc').
>[WARNING: source_sink `'~/.plrc'' does not exist]
>[WARNING: Unhandled exception]
>2 ?-
>
>in the windows binary version (3.2.8) both consults work fine.

In the latest version, ~ and $variables are no longer honoured 
by consult.  One should use expand_file_name/2 to expand such
patterns into proper filenames and then call consult/1.

This avoids problems fetching information on files containing ~ or $.

You can get the old behaviour using

	?- set_feature(file_name_variables, true).

	--- Jan