Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Shell sourced function not available to executed script
- X-seq: zsh-users 22816
- From: Clint Priest <cpriest@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Shell sourced function not available to executed script
- Date: Sun, 13 Aug 2017 18:02:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=o3YTdd3rWwvyaqTpvK 4MN79GYXWdCPnHIqNt8YQlhHA=; b=eXvhr1DMWYty660OS3ATrNyluLafy+TO4R N+UkWWjdj/npu9083f/ZgDbtP/Q4pjDDiqs2cJ9S6YQ9qCiTJgPeEOF8h9S0mGGG Le7z+qG15BdkNd5SSfxxzYIx2dHN2+7LM6misA9iOWaYqEcaKdmNLSRNVn//B477 W8SFiekL1s5ndCmeubRusIdfO1fCwe57VONOYU99cJ8HVzakVBB7mUE3TtDP8OBo QP4tsCo1bRogKbbG6WlDCCBba0t+MvJ4pUF9PqrbLS3dNU+o4ZYKKS3FKyWBXT0A c5b0UomDHDpNvxmlk3PKe97sRPn4TrQDPy+aNW6wZSCKS1BQCsbA==
- 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
I could be wrong, but I swear that a function declared in my shell
environment was available to another script executed from the CLI.
In my case, I have a function:
pv() {
echo "\$$1='${(P)1}'";
}
Which is `source`ed into my environment. I could type pv PATH and it
would echo:
$PATH='...'
However when I run another script with executability set, shebang is
#!/bin/zsh it tells me pv is not available.
Any ideas?
--
-Clint
Messages sorted by:
Reverse Date,
Date,
Thread,
Author