Hi Steffen,

On Fri, Jul 22, 2022 at 02:38:22PM +0200, Steffen Nurpmeso wrote:
> Hello Paul!
> 
> Paul Vojta wrote in
>  <[email protected]>:
>  |I believe that there's a bug in s-nail, both in Debian version 14.9.11-2
> 
> "if -n" does not exist before v14.9.13 (alongside -N which is
> a better choice, as below).
> 
>  |and in commit 00c264c02c1b411a6d553e610324a34cdbd7e778 on git
>  |(dated 2022-07-07).
>  |
>  |When I run s-nail with the following in my .mailrc file:
> 
> If you prepend
> 
>   set v15-compat=y
> 
>  | set myvar=a
>  | if -n "$myvar"
>  |   echo myvar is set
>  | endif
>  |
>  | echo done
>  |
>  |I get the following output:
> 
> it will do what you want.

Ah, I'd forgotten about that.  In actual usage, I had "set v15-compat"
but not "set v15-compat=y", but then forgot to include that in my MWE.

That fixed the problem -- thanks!!

(By the way, why do you require "set v15-compat=y" instead of "set v15-compat",
given the numerous instances of "set var" in (for example) s-nail.rc?)

[snip]

> Ciao Paul!
> 
> --steffen

Ciao, and thanks again!

Paul

Reply via email to