zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: "Bug" in promptnl
Date: Wed, 06 Jun 2012 07:45:09 -0700	[thread overview]
Message-ID: <120606074509.ZM6697@torch.brasslantern.com> (raw)
In-Reply-To: <4FCF153E.9040405@necoro.eu>

On Jun 6, 10:30am, René wrote:
} Subject: "Bug" in promptnl
}
} promptnl:65: bad math expression: operand expected at `> 1 '
} 
} The message is no real problem but just confusing :). Is there an easy
} way to fix it? Probably just checking that {${RECV#*\;}%R} does not
} evaluate to the empty string, isn't it?

Wow, 11 years without anyone noticing this?

Index: Functions/Misc/promptnl
===================================================================
diff -u -r1.1.1.1 promptnl
--- Functions/Misc/promptnl     9 Apr 2001 20:14:11 -0000       1.1.1.1
+++ Functions/Misc/promptnl     6 Jun 2012 14:34:18 -0000
@@ -62,7 +62,7 @@
 
  # If the cursor is not in the first column, emit EOLMARK and newline.
   
   -(( ${${RECV#*\;}%R} > 1 )) && print -P -- $EOLMARK
   +(( ${${${RECV#*\;}%R}:-0} > 1 )) && print -P -- $EOLMARK
    
     return 0


      reply	other threads:[~2012-06-06 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-06  8:30 René Neumann
2012-06-06 14:45 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=120606074509.ZM6697@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).