From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1242 invoked from network); 24 Nov 2006 06:23:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Nov 2006 06:23:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97025 invoked from network); 24 Nov 2006 06:23:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Nov 2006 06:23:08 -0000 Received: (qmail 6583 invoked by alias); 24 Nov 2006 06:23:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23009 Received: (qmail 6573 invoked from network); 24 Nov 2006 06:23:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Nov 2006 06:23:05 -0000 Received: (qmail 96666 invoked from network); 24 Nov 2006 06:23:05 -0000 Received: from smtp4-g19.free.fr (212.27.42.30) by a.mx.sunsite.dk with SMTP; 24 Nov 2006 06:23:01 -0000 Received: from [192.168.3.1] (nor75-8-81-57-96-20.fbx.proxad.net [81.57.96.20]) by smtp4-g19.free.fr (Postfix) with ESMTP id 0B77588FF for ; Fri, 24 Nov 2006 07:23:00 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <3DB87364-D080-42A0-A65C-F0552E4F0E7E@free.fr> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: zsh-workers@sunsite.dk From: =?ISO-8859-1?Q?Une_B=E9vue?= Subject: switching a context Date: Fri, 24 Nov 2006 07:22:59 +0100 X-Mailer: Apple Mail (2.752.2) On my bow i do have to installation of ruby one under /opt/local another under ~/ the first is the standard ruby the second is another version of ruby callable by java thru jRuby. they have in common some names of env vars : as for example GEM_HOME but they do not have to point to the same directory. they have also in common names of scripts. here it is esier to make the differnce when i have "gem" for the first ruby i use jgem for jRuby by aliasing : alias jgem="$JRUBY_HOME/jruby $JRUBY_BIN/gem" then, the question is, when i use such an alias may i have a way to switch the context, that's to say : instead of having $GEM_HOME=/opt/local... having $GEM_HOME=~/... is that possible using zsh ? Yvon