Newsgroups: comp.unix.shell
From: Stephane CHAZELAS <this.addr...@is.invalid>
Date: Fri, 9 May 2008 17:07:59 +0200 (CEST)
Local: Fri, May 9 2008 11:07 am
Subject: Re: Sourcing file in the same shell using a command and csh
2008-05-9, 07:25(-07), amiro...@googlemail.com:
[...] > How can I solve the following scenario: [...] > /--- source-file --- > /--- executable-file --- > After running ./executable-file $MYPATH is not visible anymore since > How can I source a file in the running shell with the help of a If you're shell is csh compatible, use source executable-file If not, maybe what you're after is something like: eval "$(csh -c 'source source-file; sh -c export\ -p')" (assuming "sh" is a POSIX sh; on Solaris, you need -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||