Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shell sourced function not available to executed script
- X-seq: zsh-users 22819
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Priest <cpriest@xxxxxxxxxxxxxxxx>
- Subject: Re: Shell sourced function not available to executed script
- Date: Sun, 13 Aug 2017 16:57:57 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TM6/IsrOs9migKMpRRRNQmJHIC91wu8KAu50Y0nMLps=; b=UUT0F2HGqZpvnGIE4gMmaH9Ye0e4lDPh7inyxHepOSOz0HGc3S8gLyBeaIifNS6tQJ 3gnZyZsnJweFyPRDICsVf+HhNeK7v+ySJqLAe4wsM1qsbOp7VGDPcABPx74kLD6/1zMP oHstc5DGpzUAxsiy/SNSl3h5bhbWFJ1QyYkN5Z+5mhr/AlbAN21nAApMkxjmVhpdTb97 vk1shHAoQG7ZPCB0d7wysMNoo5N9prd7Oc5np+r5mZ1ef4cmjyvWWxDTD9jRNTQCXkkH veTeBfH+xsk6PV78p0P+2UtOcPP0FR5N2o7fJB/VdiFl0eY3GnWsg87J/cC1lGRAKKVY jxPw==
- In-reply-to: <898c3100-52e8-9450-a816-4b029f807067@zsh-users.rxv.me>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <75edf819-b9c7-4466-978b-14331314e92a@zsh-users.rxv.me> <898c3100-52e8-9450-a816-4b029f807067@zsh-users.rxv.me>
On Sun, Aug 13, 2017 at 4:15 PM, Clint Priest <cpriest@xxxxxxxxxxxxxxxx> wrote:
> It would also seem that 'autoloaded functions' are also not available from
> executed scripts... I created it as an autoloaded function and it works
> from the CLI just fine.
>
>
> On 8/13/2017 6:02 PM, Clint Priest wrote:
>>
>> In my case, I have a function:
>>
>> Which is `source`ed into my environment.
This is going to depend on which of your startup files contain the
"source" or "autoload" commands. Interactive and login shells load a
different set of ~/.z* files than do scripts. Scripts typically read
only /etc/zshenv and ~/.zshenv. For complete details, "man zsh" and
read the section on "Startup/Shutdown Files" (or section 5.1 in "info
zsh" if you have that available).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author