]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts: completion.pl: sort the completion file for all shells
authorCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Sat, 5 Apr 2025 22:53:51 +0000 (19:53 -0300)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 6 Apr 2025 09:35:38 +0000 (11:35 +0200)
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

scripts/completion.pl

index a2cfc37df7e4530060d1efc790c1ab51f4aec26a..bc4cc9fea337c540f2f6156a44956c2014e62f9d 100755 (executable)
@@ -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;
 }