emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35209: closed (Bug in zdiff argument of an option separated by a spa


From: GNU bug Tracking System
Subject: bug#35209: closed (Bug in zdiff argument of an option separated by a space is not handled correctly)
Date: Tue, 29 Mar 2022 23:55:02 +0000

Your message dated Tue, 29 Mar 2022 16:53:58 -0700
with message-id <d21dfc62-96b1-1d61-cf18-eee6d4031d06@cs.ucla.edu>
and subject line Re: bug#35209: Bug in zdiff argument of an option separated by 
a space is not handled correctly
has caused the debbugs.gnu.org bug report #35209,
regarding Bug in zdiff argument of an option separated by a space is not 
handled correctly
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
35209: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35209
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Bug in zdiff argument of an option separated by a space is not handled correctly Date: Tue, 9 Apr 2019 16:11:14 +0200
Hi,

The zdiff script does not handle options with arguments separated by a
space correctly.

The following if a valid diff command: "diff -y -W 200 /tmp/b1 /tmp/b2".
But when passed to zdiff the space between "-W" and 200 causes the
COLUMNS argument to be interpreted as a file:
zdiff -y -W 200 /tmp/b1 /tmp/b2
/bin/zdiff: 72: /bin/zdiff: cannot open 200: No such file

The error is caused by the following line in the loop that processes
the arguments:
-?*) cmp="$cmp '$1'";; (line 63 in version  1.6)

There should be an additional check to catch options with arguments. I
couldn't come up with a working solution quickly so I am currently
using a workaround.
If I remove the space between the option "-W" and it's COLUMNS
argument the script works as expected.

With this workaround the zdiff utility is great solution for the
problem I'm working on, thanks!

Thanks in advance

Bram Mertens



--- End Message ---
--- Begin Message --- Subject: Re: bug#35209: Bug in zdiff argument of an option separated by a space is not handled correctly Date: Tue, 29 Mar 2022 16:53:58 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0
On 4/9/19 07:11, Bram Mertens wrote:

The zdiff script does not handle options with arguments separated by a
space correctly.

Thanks for reporting that. Lv Ying eventually followed up here:

https://bugs.gnu.org/54291

and as mentioned there, a patch has been installed and should be in the next gzip release.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]