Differences between revisions 9 and 10
Revision 9 as of 2008-11-14 12:46:30
Size: 188
Editor: c-69-138-47-0
Comment: Here is to many more, http://style86.kilu.de/recipe2e9.html incense stick recipes, wgbi, http://style86.kilu.de/recipe23f.html cake recipes for molding, rnhlcy,
Revision 10 as of 2008-11-14 14:48:20
Size: 678
Editor: GreyCat
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Here is to many more, http://style86.kilu.de/recipe2e9.html incense stick recipes, wgbi, http://style86.kilu.de/recipe23f.html cake recipes for molding, rnhlcy,
----
CategoryCategory
[[Anchor(faq23)]]
== I want to launch an interactive shell that has a special set of aliases and functions, not the ones in the user's ~/.bashrc. ==

{{{
bash --rcfile /my/custom/bashrc
}}}

Variant question: ''I have a script that sets up an environment, and I want to give the user control at the end of it.''

Put {{{exec bash}}} at the end of it to launch an interactive shell. This shell will inherit the environment (which does ''not'' include aliases, but that's OK, because [:BashFAQ/080:aliases suck]). Of course, you must also make sure that your script runs in a terminal -- otherwise, you must create one, for example, by using {{{exec xterm -e bash}}}.

Anchor(faq23)

I want to launch an interactive shell that has a special set of aliases and functions, not the ones in the user's ~/.bashrc.

bash --rcfile /my/custom/bashrc

Variant question: I have a script that sets up an environment, and I want to give the user control at the end of it.

Put exec bash at the end of it to launch an interactive shell. This shell will inherit the environment (which does not include aliases, but that's OK, because [:BashFAQ/080:aliases suck]). Of course, you must also make sure that your script runs in a terminal -- otherwise, you must create one, for example, by using exec xterm -e bash.

BashFAQ/023 (last edited 2016-08-31 00:32:52 by ormaaj)