Dear all,
I believe that there's a bug in s-nail, both in Debian version 14.9.11-2
and in commit 00c264c02c1b411a6d553e610324a34cdbd7e778 on git
(dated 2022-07-07).
When I run s-nail with the following in my .mailrc file:
set myvar=a
if -n "$myvar"
echo myvar is set
endif
echo done
I get the following output:
s-nail: if: invalid expression syntax -- near: -n
s-nail: Expression: -n $myvar
s-nail: Stopped at: -n $myvar
done
s-nail version v14.9.24. Type `?' for help
(On Debian it prints a different version number, of course.)
Is this a bug, or if not then what is the correct syntax?
Sincerely,
Paul Vojta