From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3064 invoked by alias); 20 Jun 2017 17:08:31 -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: 41335 Received: (qmail 18675 invoked from network); 20 Jun 2017 17:08:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.215.44):SA:0(1.0/5.0):. Processed in 1.177473 secs); 20 Jun 2017 17:08:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLYTO, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: linux.tech.guy@gmail.com X-Qmail-Scanner-Mime-Attachments: |right_prompt_test| X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.215.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=D8hwIGoq83S2zb9Fd7YJO2uA4LWA3hHFjH7k3Vmg7M4=; b=RrU1WRBwX/pxcAMuTs9iUbpV1PSXrkMCu1iU5Zb3GRqefcGI2Sih8TAYyowPTKcawg Bvp8HTnJ848aIz+7upkw6PtUwnsdSLpQi02aAFf0BPwu8QMV+/x+Mik5HtRNcSeq7IRo H+SXjf4j2h6lzkYH/iCUqlY+Sd7zHSHBCl9P6jRJX9O3AgvWaPQydHvGHHi115OYi8WC F463fBDsTryptRhrN/GMfsZEL0dRwDYmKMdoZjfEafc9NpdtXDhfjDW9CNBKj28v/wpI UPcjZphKar/5LwhEXSMQR1vNKlhigtRbEcNfZlOzj/zHgu5jm0jIfyhBhhVfzk16+gJu FYzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=D8hwIGoq83S2zb9Fd7YJO2uA4LWA3hHFjH7k3Vmg7M4=; b=UXipRzu+DE8CvPLYlqmhNMogBz2w4BFnclNRCx9xMV4y00iuI9CLSxs6kxk7x9D6z6 +YeHpag8e/583gLJ7JHibeLg7F0VizMxAe9K4qQOTV0CQ+xvmZ/LhKkvN9Ph4P/JC7cQ ap9uqEjLOxSVA3q+4GMe9TLVAAB8i+L8LRWOyXg5nGPLh+wk4SLrEk9g1M5HRZvRCce2 4pA7hvT32gI2u3g3G6tWyTJ8p6k0Ilg6TBwrtIyoEf0d0a3IK39Tg0dQSVpZrOIdKM9h /NR/k3a2qwqzSmxOMptR9xdYzWxkTEPRSNcB5yvTjfu83/77R3NTk8v23F3sCwwAxHAd dZHg== X-Gm-Message-State: AKS2vOz3J/UWXoSBfEqa6ncz8PRXGq+23Qiyfw2GihEnVy/qvn11rjwY /E6Jla6WwzMqiEqsM54ixxiGyAcI2EiG X-Received: by 10.80.147.226 with SMTP id o89mr22580998eda.112.1497978504473; Tue, 20 Jun 2017 10:08:24 -0700 (PDT) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com From: Jim Date: Tue, 20 Jun 2017 12:08:23 -0500 Message-ID: Subject: When RPROMPT != RPS1 To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary="f403045c7e18a46a450552674c9a" --f403045c7e18a46a450552674c9a Content-Type: multipart/alternative; boundary="f403045c7e18a46a400552674c98" --f403045c7e18a46a400552674c98 Content-Type: text/plain; charset="UTF-8" zsh 5.3.1 (x86_64-pc-linux-gnu) When switching between prompt theme walters and some other themes I noticed that the right prompt remained. On checking I found walters was the only theme that used RPROMPT to set the right prompt. The only other theme to set the right prompt is bart, but it used RPS1. After switching from walters to say adam, I unset "RPS1", but the right prompt remained. I then typed "unset RPROMPT" and the right prompt was no longer there. The output of a script I wrote doesn't match what I though it should, but then again it was just strange. Current state of RPROMPT and RPS1 RPROMPT: RPS1: Set RPROMPT to RPROMPT RPROMPT: RPROMPT RPS1: Set RPS1 to RPS1 RPROMPT: RPS1 RPS1: RPS1 Unset RPRMOPT RPROMPT: RPS1: Unset RPS1 RPROMPT: RPS1: Set RPROMPT to RPROMPT Set RPS1 to RPS1 RPROMPT: RPS1 RPS1: RPS1 Unset RPS1 RPROMPT: RPS1: Unset RPRMOPT RPROMPT: RPS1: Strange! The results here contradict what I was seeing with the right prompt and unset RPS1. I'm also attaching the script. Thanks for zsh and your help. Jim --f403045c7e18a46a400552674c98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
zsh 5.3.1 (x86_64-pc-linux-gnu)
When switching between prompt theme walters and some
other = themes I noticed that the right prompt remained. On
checking I found wal= ters was the only theme that used
RPROMPT to set the right prompt. The o= nly other theme
to set the right prompt is bart, but it used = RPS1.

After switching from walters to say adam, I unset &= quot;RPS1",
but the right prompt remained.=C2=A0 I then typed
&q= uot;unset RPROMPT" and the right prompt was no longer there.

The output of a script I wrote doesn't match what I though it<= br>
should, but then again it was just strange.

Current st= ate of RPROMPT and RPS1
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0
=C2=A0=C2= =A0=C2=A0 RPS1:=C2=A0
Set RPROMPT to RPROMPT
=C2=A0=C2=A0=C2=A0 RPRO= MPT:=C2=A0 RPROMPT
=C2=A0=C2=A0=C2=A0 RPS1:=C2=A0
Set RPS1 to RPS1=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0 RPS1
=C2=A0=C2=A0=C2=A0 RPS1:=C2=A0 = RPS1
Unset RPRMOPT
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0
=C2=A0=C2=A0= =C2=A0 RPS1:=C2=A0
Unset RPS1
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0
= =C2=A0=C2=A0=C2=A0 RPS1:=C2=A0
Set RPROMPT to RPROMPT
Set RPS1 to RP= S1
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0 RPS1
=C2=A0=C2=A0=C2=A0 RPS1:=C2= =A0 RPS1
Unset RPS1
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2=A0
=C2=A0=C2= =A0=C2=A0 RPS1:=C2=A0
Unset RPRMOPT
=C2=A0=C2=A0=C2=A0 RPROMPT:=C2= =A0
=C2=A0=C2=A0=C2=A0 RPS1:=C2=A0

Strange!=C2=A0 Th= e results here contradict what I was seeing
with the right pr= ompt and unset RPS1. I'm also attaching
the script.
Thanks for zsh and your help.

Jim
<= /div>
--f403045c7e18a46a400552674c98-- --f403045c7e18a46a450552674c9a Content-Type: application/octet-stream; name=right_prompt_test Content-Disposition: attachment; filename=right_prompt_test Content-Transfer-Encoding: base64 X-Attachment-Id: f_j45tltu00 IyEvYmluL3pzaAoKcHJpbnQgIkN1cnJlbnQgc3RhdGUgb2YgUlBST01QVCBhbmQgUlBTMSIKcHJp bnQgLWwgIlx0UlBST01QVDogICRSUFJPTVBUIiAiXHRSUFMxOiAgJFJQUzEiCnByaW50ICJTZXQg UlBST01QVCB0byBSUFJPTVBUIiA7IFJQUk9NUFQ9IlJQUk9NUFQiCnByaW50IC1sICJcdFJQUk9N UFQ6ICAkUlBST01QVCIgIlx0UlBTMTogICRSUFMxIgpwcmludCAiU2V0IFJQUzEgdG8gUlBTMSIg OyBSUFMxPSJSUFMxIgpwcmludCAtbCAiXHRSUFJPTVBUOiAgJFJQUk9NUFQiICJcdFJQUzE6ICAk UlBTMSIKcHJpbnQgIlVuc2V0IFJQUk1PUFQiIDsgdW5zZXQgUlBST01QVApwcmludCAtbCAiXHRS UFJPTVBUOiAgJFJQUk9NUFQiICJcdFJQUzE6ICAkUlBTMSIKcHJpbnQgIlVuc2V0IFJQUzEiIDsg dW5zZXQgUlBTMQpwcmludCAtbCAiXHRSUFJPTVBUOiAgJFJQUk9NUFQiICJcdFJQUzE6ICAkUlBT MSIKcHJpbnQgIlNldCBSUFJPTVBUIHRvIFJQUk9NUFQiIDsgUlBST01QVD0iUlBST01QVCIKcHJp bnQgIlNldCBSUFMxIHRvIFJQUzEiIDsgUlBTMT0iUlBTMSIKcHJpbnQgLWwgIlx0UlBST01QVDog ICRSUFJPTVBUIiAiXHRSUFMxOiAgJFJQUzEiCnByaW50ICJVbnNldCBSUFMxIiA7IHVuc2V0IFJQ UzEKcHJpbnQgLWwgIlx0UlBST01QVDogICRSUFJPTVBUIiAiXHRSUFMxOiAgJFJQUzEiCnByaW50 ICJVbnNldCBSUFJNT1BUIiA7IHVuc2V0IFJQUk9NUFQKcHJpbnQgLWwgIlx0UlBST01QVDogICRS UFJPTVBUIiAiXHRSUFMxOiAgJFJQUzEiCg== --f403045c7e18a46a450552674c9a--