Re: bash function/alias question

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 06/27/05


Date: Mon, 27 Jun 2005 16:24:15 -0400

On Mon, 27 Jun 2005 12:17:54 -0700, Eric Taylor
  <et1@rocketship1.com> wrote:
> I'm confused, I define all the functions and the aliases in
> the script file. I am not trying to change the parent, I just
> showed that when sourced, it works, so there are no
> syntax errors. When run as a separate process, it fails,
> even though everything is defined in the spawned process.
>
When you execute a script as a separate process, the functions and
aliases defined in the script are part of that process.

-- 
Will slrn ever come into this century and stop turning all punctuation
into question marks?


Relevant Pages

  • Re: [opensuse] alias failure
    ... So it's just an accident that the following aliases all work as I ... It's uncommon for interactive shells to have any positional parameters ... Unlike the very limited capabilities of aliases, shell procedures ... I made a script with nothing but that in it, ...
    (SuSE)
  • Re: [PS] - Help with becoming better
    ... If I give it ps for input, then I get back Get-Process which is of course ... I think this does pretty much the same as your script. ... I write an actual script however, I would rather avoid the use of aliases as ...
    (microsoft.public.windows.server.scripting)
  • Re: [PS] - Help with becoming better
    ... I didn't take it to handling parameters, ... I think this does pretty much the same as your script. ... I write an actual script however, I would rather avoid the use of aliases as ...
    (microsoft.public.windows.server.scripting)
  • Re: [PS] - Help with becoming better
    ... If I give it ps for input, then I get back Get-Process which is of course ... I think this does pretty much the same as your script. ... I write an actual script however, I would rather avoid the use of aliases as ...
    (microsoft.public.windows.server.scripting)
  • Re: alias within bash-script
    ... > The script prints nothing. ... > How to invoke alias within script? ... aliases are not passed to subshells, ... Then within your .bashrc file, ...
    (comp.unix.shell)