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: Chet Ramey
Subject: Re: PS1 is reset after using exec (bug or feature?)
Date: Mon, 03 Nov 2003 13:50:45 -0500

> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include 
> -I./lib  -mcpu=pentium3 -march=pentium3 -O3 -pipe
> uname output: Linux schleppi 2.4.21-acpi-20030619 #5 Sat Oct 11 
> 18:13:05 CEST 2003 i686 Pentium III (Coppermine) GenuineIntel 
> GNU/Linux
> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
>         I don't know if this a feature, but then please tell me why 
>         PS1 gets reset when I exec another bash script.

Non-interactive shells unset PS1.  This has been in bash for eons.  It's
indirectly documented.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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