Skip Menu |

This queue is for tickets about the Text-VimColor CPAN distribution.

Report information
The Basics
Id: 11556
Status: resolved
Priority: 0/
Queue: Text-VimColor

People
Owner: Nobody in particular
Requestors: smylers [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08
Fixed in: 0.09



Subject: Wrong vim Error Code Returned
If the vim command fails, with a non-zero exit code, then this is reported incorrectly. For example, an exit code of 1 (as per the bug in ticket #11555) is reported as 256. This should fix the problem -- just after the waitpid call (line 336), replace these 2 lines: $? == 0 or die "$0: $prog returned an error code of '$?'.\n"; with these 2: my $error = $? >> 8; die "$0: $prog returned an error code of '$error'.\n" if $error; Smylers
[guest - Fri Feb 18 07:27:24 2005]: Show quoted text
> If the vim command fails, with a non-zero exit code, then this is > reported incorrectly. For example, an exit code of 1 (as per the bug > in ticket #11555) is reported as 256.
Applied your suggested fix in 0.09. It would be nice if we could decode what the error code actually means, if Vim uses more than just '1', but that's for another day. qef