[BASH] shell functions don't work the same when opening sub-shells
From: Andrew Falanga (not_real_at_hp.com)
Date: 11/28/05
- Next message: danr: "Re: Problem with using extended filename globbing in Ksh"
- Previous message: luke: "Env variable whit asterisk"
- Next in thread: Lars Kellogg-Stedman: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Lars Kellogg-Stedman: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Chris F.A. Johnson: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Andrew Falanga: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Nov 2005 08:25:49 -0700
Hi,
I've got a rather odd occurrance when I open a sub-shell for changes to
my environment. In my .bashrc file I have some shell functions that
I've written to help make life easier for me.
One of these functions takes an option, -p, and then a pattern to search
for. The pattern if found, is used in creating the sub-shell. I have
it setup that the function always defaults to a specific type of pattern
if the -p option is not provided.
When starting a new shell all works as it should, but after exiting a
sub-shell and using this function again, the function completely ignores
the -p option and simply uses the default. Can anyone shed some light
as to why for me?
---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled. I do not wish my account at HP to
become a spam haven.
- Next message: danr: "Re: Problem with using extended filename globbing in Ksh"
- Previous message: luke: "Env variable whit asterisk"
- Next in thread: Lars Kellogg-Stedman: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Lars Kellogg-Stedman: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Chris F.A. Johnson: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Reply: Andrew Falanga: "Re: [BASH] shell functions don't work the same when opening sub-shells"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]