From jan@swi.psy.uva.nl  Mon Sep 13 12:38:50 1999
Received: from gollem.swi.psy.uva.nl (jan@gollem [145.18.114.15])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA26902
	for <prolog@swi.psy.uva.nl>; Mon, 13 Sep 1999 12:38:50 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.8.8/8.8.8) id MAA00906;
	Mon, 13 Sep 1999 12:39:33 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
To: prolog@swi.psy.uva.nl, Lesta@t-online.de (Uwe Lesta)
Subject: Re: pl-3.2.9 could not load .plrc ?
Date: Mon, 13 Sep 1999 12:33:55 +0200
X-Mailer: KMail [version 0.7.9]
Content-Type: text/plain
References: <37BC2FFA.3AF0AE5@t-online.de>
MIME-Version: 1.0
Message-Id: <9909131239330N.00286@gollem>
Content-Transfer-Encoding: 8bit

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

