From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13361 invoked by alias); 18 Oct 2011 06:38:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16506 Received: (qmail 23959 invoked from network); 18 Oct 2011 06:38:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at benizi.com does not designate permitted sender hosts) Date: Tue, 18 Oct 2011 02:28:35 -0400 (EDT) From: "Benjamin R. Haskell" To: "Daniel Serodio (lists)" cc: Mikael Magnusson , zsh-users@zsh.org Subject: Re: What's wrong with this expression? In-Reply-To: <4E9C9DB4.50104@mandic.com.br> Message-ID: References: <4E9C9997.3050306@mandic.com.br> <4E9C9DB4.50104@mandic.com.br> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Mon, 17 Oct 2011, Daniel Serodio (lists) wrote: > Mikael Magnusson wrote: >> On 17 October 2011 23:09, Daniel Serodio (lists) wrote: >>> I'm trying to troubleshoot a script that works with bash but fails >>> with zsh, >>> [...] > > [...] > > if [[ ! "${PATH}" =~ $regex ]] ; then > > where "regexp" is: > > regex="^([^:]*:)*${rvm_bin_path}(:[^:]*)*$" When first trying to set up rvm, it regularly segfaulted on me in zsh-4.3.10. I initially narrowed the problem down to the __rvm_after_cd function, and just gutted it by adding: [[ -n "$ZSH_VERSION" ]] && return 0 as line 9 of ~/.rvm/scripts/cd Then at least it sometimes worked. But, shortly thereafter, I just updated Zsh to zsh-4.3.12, and haven't had problems since. -- Best, Ben