System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

bash on 11.23, exiting wrong if used a user login shell

bash on 11.23, exiting wrong if used a user login shell

We have installed:

GNU bash, version 3.00.14(1)-release (ia64-hp-hpux11.23)
Copyright (C) 2004 Free Software Foundation, Inc.

Some of our users wanted to have their login shell defined as bash. When the user logins, bash does indeed become the shell. But if the users executes a sqlplus script that exits at the end, it exits bash also and logs them out.

If I define /usr/bin/sh as the default login, the user logins, then types bash. Everything works fine. The sqlplus exit returns to the bash shell, and another exit returns to the /usr/bin/sh shell.

Is something not setup in the user profile to handle the exit command?
2 REPLIES
Steven Schweda
Honored Contributor

Re: bash on 11.23, exiting wrong if used a user login shell

It might be helpful to see what's in this
"sqlplus script that exits at the end", and
exactly how "the users executes" it. Or,
even better, some simple test script which
causes the same problem.

> Is something not setup in the user profile
> to handle the exit command?

The other non-psychics here probably can't
see what's in "the user profile" any better
than I can. Which is to say, not at all.

> GNU bash, version 3.00.14(1)-release (ia64-hp-hpux11.23)
> Copyright (C) 2004 Free Software Foundation, Inc.

Not likely to be the most up-to-date version
available.

Re: bash on 11.23, exiting wrong if used a user login shell

That you for your advise. We did find that the programmer did have a extra exit in the shell script calling the sql script.