Differences between revisions 6 and 9 (spanning 3 versions)
Revision 6 as of 2008-11-09 23:37:17
Size: 678
Editor: GreyCat
Comment:
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,
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[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}}}.
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

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

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