Re: bash function/alias question
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 06/27/05
- Next message: Roger Leigh: "Re: Linear framebuffer documentation"
- Previous message: Bill Marcum: "Re: Linear framebuffer documentation"
- In reply to: Eric Taylor: "bash function/alias question"
- Next in thread: Eric Taylor: "Re: bash function/alias question"
- Reply: Eric Taylor: "Re: bash function/alias question"
- Reply: Kasper Dupont: "Re: bash function/alias question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Jun 2005 14:08:56 -0400
On Mon, 27 Jun 2005 09:53:03 -0700, Eric Taylor
<et1@rocketship1.com> wrote:
> I am having a problem with an alias to a function.
> The script atest is chmod +x and if run as a "program"
> instead of sourced, it fails. Is this a bash bug?
>
No, it's a feature. Functions and aliases are part of the current
environment, and a program can't change its parent's environment.
-- Support Our Oops!
- Next message: Roger Leigh: "Re: Linear framebuffer documentation"
- Previous message: Bill Marcum: "Re: Linear framebuffer documentation"
- In reply to: Eric Taylor: "bash function/alias question"
- Next in thread: Eric Taylor: "Re: bash function/alias question"
- Reply: Eric Taylor: "Re: bash function/alias question"
- Reply: Kasper Dupont: "Re: bash function/alias question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|