bug-bash
[Top][All Lists]
Advanced

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

Re: how are aliases exported?


From: Maarten Billemont
Subject: Re: how are aliases exported?
Date: Mon, 16 Apr 2012 10:03:16 +0200

On 16 Apr 2012, at 09:54, Maarten Billemont wrote:
> On 15 Apr 2012, at 22:52, Linda Walsh wrote:
>> 
>> But I want the syntax
>> 
>> include file.shh
>> 
>> to just 'work', i.e. first time, it would call my include file, which defines
>> the function...
> 
> I'm sorry, tell me again why you don't just write "source file.sh" instead of 
> having to invent your own "include file.sh"?


I just realized, you appear to be looking for a way to define a "source path" 
to search for the file.

PATH=/foo:/bar:/etc source file

or

PATH=$SOURCEPATH source file

I know it's not as "clean" as "include file", but it's certainly more clear as 
to what it does.  And clarity is more important, IMO.  Also, it conveniently 
also doesn't require insane hacks.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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