bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how are aliases exported?


From: Linda Walsh
Subject: how are aliases exported?
Date: Fri, 13 Apr 2012 17:01:42 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666





How can I export an alias so it survives across an exec?


I thought there was a way for them to be exported like vars or functions...
but neither work.

I have a prog that needs an alias defined, if it isn't, it
execs a program to define the alias which re-execs the first --
if the alias isn't defined on the 2nd execution, the program
fails (has a check to prevent looping)...it seems the alias isn't
staying defined across the exec....

shouldn't export -f work for aliases? -- as I don't think
it would work to have an alias the same name as a function
(or would it?....)  Either way.. How can you export an alias - simply!

I mean I could do it by re-instantiating them in a bash_env file, like
I have to do for arrays -- is the same required for aliases?    Both
are pretty ugly though...






reply via email to

[Prev in Thread] Current Thread [Next in Thread]