comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Spawning Unix commands from IDL under bash
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Spawning Unix commands from IDL under bash [message #93309 is a reply to message #93307] Fri, 10 June 2016 11:30 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Friday, June 10, 2016 at 2:20:05 PM UTC-4, wlandsman wrote:
> I've recently succumbed to peer pressure to switch my (Mac and Linux) shell from tcsh to bash.
>
> Everything is working fine except that I do not have access to the aliases defined in my .bash_profile (Mac) or .bashrc (linux) files when spawning from IDL. For example in my .bash_profile file I have
>
> alias ll="ls -l"
>
> I am able to use this alias at the system prompt but it is not recognized when spawning from the IDL prompt
>
> IDL> $ll (or IDL> spawn,'ll' )
> bash: ll: command not found
>
> Note that this is not a PATH problem and IDL> spawn,'ls' does work.

I think you are spawning an interactive non-login shell. See here...

https://www.gnu.org/software/bash/manual/html_node/Bash-Star tup-Files.html

So it may depend whether your alias is defined in .bashrc or .bash_profile.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: no text on new graphics - missing path or bad file?
Next Topic: Multi plots conditions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:45:53 PDT 2025

Total time taken to generate the page: 0.00377 seconds