From 5ed881d25bb9a73df57624d73cafb1af1638688e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 1 Aug 2022 23:20:47 +0200 Subject: [PATCH] czech-wordnet.pl: improve portability Perl runs `` commands in the shell only if they contain shell metacharacters. --- dicts/czech-wordnet.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dicts/czech-wordnet.pl b/dicts/czech-wordnet.pl index d1d32f9..23660e0 100755 --- a/dicts/czech-wordnet.pl +++ b/dicts/czech-wordnet.pl @@ -5,7 +5,7 @@ use warnings; use strict; # GNU Gzip can unpack a ZIP file, but not the BSD one, and unzip can't use stdin -my $zipcat = qx/command -v bsdtar/ ? 'bsdtar -xOf-' : 'zcat'; +my $zipcat = qx/(command -v bsdtar)/ ? 'bsdtar -xOf-' : 'zcat'; my $base = 'https://lindat.cz/repository/xmlui'; my $path = 'handle/11858/00-097C-0000-0001-4880-3';