From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25567 invoked by alias); 29 Jun 2012 18:53:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30549 Received: (qmail 26367 invoked from network); 29 Jun 2012 18:53:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.212.171 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=1LSiVc1/FhcZVaNhQz3TLGCgjioTWd8nFsGAVYb9sh0=; b=eSUseyvc073yTJeGSsHqxE+qjq+bIHPnQLc8eDe5n454z3vGMqXEcc5bXfPG3/rCM6 NMvztfHYvmzFxwSAEEJBhYQGv/v6jBfZCt1VzT/B2jBX8+TgpoPWNCJCiVR1+a/P/K5a XBGtrBPXO+7/mrANwvu442YF0WvAYgeRcaKUESL3avmYuIfK3Vv9DVno50ze797CBWgs FXvPCQLlchChfzvX6Hpfud1NnGEjR5AQM46DdWpukS0nQrs3QDqbKcBAcJlzsXOKPG0Y 98UBO1RBOCFsNfIYQXGSl18JVBbDmsmXZo8R72RfuEtt9bQUQq2S3ltnfTrsRg1o6RzG A00w== X-ProxyUser-IP: 86.6.29.42 Date: Fri, 29 Jun 2012 19:52:54 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: 4.3.17 unset RPS1 vs RPROMPT Message-ID: <20120629195254.5dba2156@pws-pc.ntlworld.com> In-Reply-To: <20120629094045.GA96213@redoubt.spodhuis.org> References: <20120629094045.GA96213@redoubt.spodhuis.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQn2ENaY+91A7Y1lvSEeysNhR5kuQsJ3aeNxagxDOabBHcVzELRPGEn1Zrm2RBrCnr2pYzGP On Fri, 29 Jun 2012 02:40:46 -0700 Phil Pennock wrote: > Using "prompt walters", I get a green right-prompt. > Using "prompt pdp" to invoke my own setup, I still have it. > I debug. I have "unset RPS1" in my setup function. > Strange, try at command-line. > > unset RPS1 # no effect > unset RPROMPT # works I'm still not really following what you're trying to do, but my guess is you're not actually trying to unset the variable at all, you're trying to set it to an empty string. They may sound similar, and they often have the same effect, but they are different things. If the variable is unset, it is indeed uncoupled from anything else that's going on, which is kind of what unset means. So unsetting an unset variable does indeed have no effect. As far as I can see the prompt functions never try to unset the prompts. I'd suggest you use "RPS1=" to make the prompt empty. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/