Bug#485885: zsh: shell-script-fails-syntax-check ./usr/share/zsh/functions/Misc/sticky-note false positive
[no need to CC me, I read the list :)]
Frank Lichtenheld wrote:
> On Wed, Jun 11, 2008 at 08:47:49PM -0500, Raphael Geissert wrote:
>> Attached is a patch that removes zsh from the scripts to check (dash,
>> ksh, and similar should be safe, as they don't introduce new syntax).
>
> Note that this isn't about syntax additions, the script is executed with
> zsh after all. It seems though that zsh -n has not quite the same
> semantics as for all the other shells.
Hmm, right.
Let's see:
$ zsh -n /usr/share/zsh/functions/Misc/sticky-note; echo $?
1
>From #debian-devel:
[10:25] <Atomo64> Clint: do you know why zsh -n sometimes exits with a
status code of 1 without echoing anything?
[10:27] <Clint> Atomo64: no.. example?
[10:27] <Atomo64> Clint: zsh -n /usr/share/zsh/functions/Misc/sticky-note;
echo $?
[10:30] <Clint> Atomo64: probably #175467
[10:36] <Atomo64> Clint: but that doesn't clearly explains why there's no
output while the status code states that there was a problem
[10:43] <Clint> Atomo64: probably one of the math expressions is returning
false; what output would you expect from that?
..
So this report should probably be merged with the other one.
>
> Gruesse,
Cheers,
--
Atomo64 - Raphael
Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
Reply to: