Re: source from within a script
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 06/13/04
- Next message: d0x: "parsing apache logs."
- Previous message: Bishara Sabbagh: "Re: source from within a script"
- In reply to: Bishara Sabbagh: "Re: source from within a script"
- Next in thread: Bishara Sabbagh: "Re: source from within a script"
- Reply: Bishara Sabbagh: "Re: source from within a script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Jun 2004 11:36:12 -0400
In article <40cc6edf$0$22984$9b4e6d93@newsread2.arcor-online.net>,
"Bishara Sabbagh" <sabbagh@arcor.de> wrote:
> Thanks Bob,
>
> of course if I source the shell-script or .profile at the command prompt it
> will work, but the problem is how to do that from within the shell-script.
> if I use the source scriptname the script would go on forever
> and if I append the constucted alias to my .profile file
> and source it, the command is not recognised as if the source command was
> not executed at all.
>From the bash man page:
Aliases are not expanded when the shell is not interactive,
unless the expand_aliases shell option is set using shopt (see
the description of shopt under SHELL BUILTIN COMMANDS below).
Could this be your problem?
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: d0x: "parsing apache logs."
- Previous message: Bishara Sabbagh: "Re: source from within a script"
- In reply to: Bishara Sabbagh: "Re: source from within a script"
- Next in thread: Bishara Sabbagh: "Re: source from within a script"
- Reply: Bishara Sabbagh: "Re: source from within a script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|