I've been avoiding el capitan so far, but on my system, /etc/paths contains
the bare minimum paths. /etc/profile adds /opt/local/bin and
/opt/local/sbin, then ~/.bash_profile tacks on a few more (like the path to
mysql and inferno, plus some adjustments made by macports (which appear to
be duplica
But on El Capitan you don't have a .bash_profile or .profile by default I
think? And put shell ("echo $PATH") does not fetch the users shell? Any
suggestions?
On 10 May 2016 at 02:02, Mike Bonner wrote:
> Ah, I see. And thank you! I now have a plugin that does a shell (source
> blah blah echo $
Ah, I see. And thank you! I now have a plugin that does a shell (source
blah blah echo $PATH) so that I always have my full terminal path available
to lc shell. No extra/custom paths added yet, but it'll be nice to always
have the full path so I don't have to mess with absolute pathing (or
buildi
Mike B. worte:
> Try this:
> set the shellcommand to "/bin/bash"
> get shell("source ~/.bash_profile ; ")
You are right, of course. For one's own machine this is the
simplest. One could even vice versa write a full (temporary)
shell-profile before using shell.
But if you wish to know if a user ha
Try this:
set the shellcommand to "/bin/bash"
get shell("source ~/.bash_profile ; ")
This should do all the environment setting that is done when you open a
terminal so that hopefully paths will match.
To check it out, first echo $PATH without sourcing the .bash_profile and
you'll most likely g
Yes - the way i see this is a combination of tools that help, and manual.
So we have some scripts which check common places and find / suggest things
to add. Then we have the ability to customise and add our own by hand. We
save these to a preference file, and load them when we start Livecode. Tha
David B. wrote
> Yes - here is the handler you need:
> command bash_AddSystemPathsToPATH
> if the platform = "MacOS" then -- and it is recent ???
> put url "file:/etc/paths" into systemPaths
> put token 1 to -1 of systemPaths into systemPathArray
> put $PATH into revPATH
> replace ":" with CR in r
Yes - here is the handler you need:
command bash_AddSystemPathsToPATH
> if the platform = "MacOS" then -- and it is recent ???
> put url "file:/etc/paths" into systemPaths
> put token 1 to -1 of systemPaths into systemPathArray
> put $PATH into revPATH
> replace ":" with CR in revPATH
> put system
Yes - I think a 'login' type shell option would help here. (Which, if I recall
correctly, causes the standard terminal setup scripts to run).
The reason the action of shell is to not use a login shell is because otherwise
env vars you might want to pass to your new process might get clobbered by
LiveCode will inherit the path env variable given to it by the environment
which launched it.
If you have access to exes from Terminal in something like /usr/local/bin but
not from apps launched from the desktop then this suggests the local bin path
is only configured in your bashrc rather than
It's sadly a big "not". I've never seen anything else than
/usr/bin:/bin:/usr/sbin:/sbin
in LC's $PATH at startup.
But the $PATH of *any* shell on 10.11.x (SIP enabled)
contains /usr/local/bin [because SIP doesn't allow to
install in /usr/bin].
Everybody could use Warren's comparison from above
@ Warren: Bingo:
# in terminal:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# from LC
put shell ("echo $PATH")
/usr/bin:/bin:/usr/sbin:/sbin
# checking which
$ which node
/usr/local/bin/node
@HH I think I will stick with Mark's recommendation to specify the abs
On 05/08/2016 03:06 PM, [-hh] wrote:
On Mac, especially 10.11.x (with SIP enabled) , most user
installations MUST go into "/usr/local/bin".
So adjust the LC global $PATH to shell's $PATH. Minimal:
on preopenstack
put "/usr/local/bin:" before $PATH
-- put ":/usr/local/bin" after $PATH
end p
On Mac, especially 10.11.x (with SIP enabled) , most user
installations MUST go into "/usr/local/bin".
So adjust the LC global $PATH to shell's $PATH. Minimal:
on preopenstack
put "/usr/local/bin:" before $PATH
-- put ":/usr/local/bin" after $PATH
end preopenstack
The second line prefers "sys
On 05/08/2016 04:07 PM, Sannyasin Brahmanathaswami wrote:
It's something about LC now knowing that I have node installed when invoked via
shell
BR
Compare what you get when you run 'echo $PATH' in a terminal to what you
get when you run it in LiveCode using shell(). Make sure the directory
Aloha:
cd /Users/Brahmanathaswami/Documents/media-books/_hap-epub-export-tool
ls
runs just fine...so /bin/sh
is delivering from LC "no problemo"
It's something about LC now knowing that I have node installed when invoked via
shell
BR
On 5/8/16, 10:51 AM, "use-livecode on behalf of Jerry J
Never mind, the msg box does run /bin/sh
Sorry for the bandwidth waste
> On May 8, 2016, at 1:46 PM, Jerry Jensen wrote:
>
> Which shell runs from the command line? Maybe not /bin/sh
>
>> On May 8, 2016, at 1:20 PM, Sannyasin Brahmanathaswami
>> wrote:
>>
>>
>> I have a stack with a field t
Which shell runs from the command line? Maybe not /bin/sh
> On May 8, 2016, at 1:20 PM, Sannyasin Brahmanathaswami
> wrote:
>
>
> I have a stack with a field that contains a shell script:
>
> cd /Users/Brahmanathaswami/Documents/media-books/_hap-epub-export-tool
> node index.js --epubFile ###
18 matches
Mail list logo