Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2017 15:03:34 +0000
From:      Manish Jain <bourne.identity@hotmail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Is there any difference between 'source <path>' and '. <path>' ?
Message-ID:  <VI1PR02MB1200E1F932D3888B05A03275F6950@VI1PR02MB1200.eurprd02.prod.outlook.com>

next in thread | raw e-mail | index | archive | help


Hi,

I used to be under the impression that 'source <path>' was fully 
equivalent to '. <path>' : both executed <path> under the current shell. 
(At least under Bourne shell derivatives)

But a few days back, I came across an instance where source fails while 
invocation with period succeeds.

So I feel inclined to ask whether the 2 mean the same or not ?

Thanks for any help.
Manish Jain


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?VI1PR02MB1200E1F932D3888B05A03275F6950>