bug-bash
[Top][All Lists]
Advanced

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

Re: PS1 is reset after using exec (bug or feature?)


From: Paul Jarc
Subject: Re: PS1 is reset after using exec (bug or feature?)
Date: Mon, 03 Nov 2003 14:16:43 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Chet Ramey <chet@nike.ins.cwru.edu> wrote:
> Non-interactive shells unset PS1.

This, along with other magic variables, is the reason I don't use bash
as /bin/sh.  I'd like to have a ./configure option to remove much of
the special handling for specific variables - no automatic setting,
unsetting, exporting, or unexporting for noninteractive shells (or as
little as possible), so the environment remains intact.  Offhand, I'd
say IFS, OPT*, and maybe PPID should still be set (but not exported),
and I don't mind BASH* (as long as they're not exported), but I don't
want my /bin/sh to touch PS*, *UID, *GID, *TYPE, HOSTNAME, or most
others.  Would such an option be accepted?  Do you want to work on it,
or should I?


paul




reply via email to

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