From: Carlos Henrique Lima Melara Date: Sat, 5 Apr 2025 22:53:51 +0000 (-0300) Subject: scripts: completion.pl: sort the completion file for all shells X-Git-Tag: curl-8_14_0~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f5e4e0db464acff921901b7bf98dd94f8a73745;p=thirdparty%2Fcurl.git scripts: completion.pl: sort the completion file for all shells The reproducible builds effort in Debian has caught a regression in curl 8.13.0-rc1 but we were a bit slow to realize it. The ordering of the completion file for fish is not deterministic so it can differ between builds. Since there is no restriction about the order of the completion file for fish, let's just sort it too. Closes #16985 --- diff --git a/scripts/completion.pl b/scripts/completion.pl index a2cfc37df7..bc4cc9fea3 100755 --- a/scripts/completion.pl +++ b/scripts/completion.pl @@ -153,7 +153,7 @@ sub parse_main_opts { $b =~ /([^=]*)/; my $mb = $1; length($mb) <=> length($ma) || $ma cmp $mb - } @list if $shell eq 'zsh'; + } @list; return @list; }