Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-soc
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-soc@g.o
From: Arun Raghavan <arunissatan@...>
Subject: Re: Re: Progress on Universal Select Tool
Date: Thu, 23 Jul 2009 13:17:32 +0530
2009/7/23 Nirbheek Chauhan <nirbheek@g.o>:
> 2009/7/23 Sérgio Almeida <mephx.x@...>:
>> A child process cannot (or shouldn't be able to) change parent's process
>> environment.
>>
>> uprofile will need to change env var's on-the-fly. For instance tag $PS1
>> with the current profile in use
>>
>
> I don't understand what use this feature has. Won't the "current
> profile" be persistent across shells? If so, won't PS1 not be
> persistent if you change in on-the-fly? If you don't intend to keep it
> persistent, what's the use? (Actually, I don't see the use of having
> it at all)

I think the point he is making is that when you update the environment
variable, you want it to start reflecting in the current shell
immediately. Correct me if I'm wrong.

If this is the case, spawning a new shell might not be an option,
since you will lose the shell's history (you'll even need to do some
work to make sure you spawn the same shell (bash/csh/zsh) as the user
is currently using. And there's going to be an element of surprise if
multiple calls to uselect end up meaning that the user needs to use
Ctrl-D/logout/exit several times to end the current session.

IMO, it is cleaner to just print a message telling the user to source
/etc/profile as eselect does currently.

Keep up the good work.
-- 
Arun Raghavan
http://arunraghavan.net/
(Ford_Prefect | Gentoo) & (arunsr | GNOME)


Replies:
Re: Re: Progress on Universal Select Tool
-- Sérgio Almeida
References:
Progress on Universal Select Tool
-- Sérgio Almeida
Re: Progress on Universal Select Tool
-- Sérgio Almeida
Re: Re: Progress on Universal Select Tool
-- Nirbheek Chauhan
Re: Re: Progress on Universal Select Tool
-- Sérgio Almeida
Re: Re: Progress on Universal Select Tool
-- Nirbheek Chauhan
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Progress on Universal Select Tool
Next by thread:
Re: Re: Progress on Universal Select Tool
Previous by date:
Re: Re: Progress on Universal Select Tool
Next by date:
Re: Re: Progress on Universal Select Tool


Updated Sep 12, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.