summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2021-09-20 10:46:43 +0000
committerNorbert Preining <preining@logic.at>2021-09-20 10:46:43 +0000
commitc7b4e57f4a4133452a9aa5272db71da3e68c8d47 (patch)
tree8c8a99fc27b425bcdd46a4fc954bcbd8e3399228
parent0bb156c9cb8cd70e3e1dcd20b5b16e8061e0b5f1 (diff)
tlmgr info: allow colons as separators for --data argument
git-svn-id: svn://tug.org/texlive/trunk@60557 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl14
1 files changed, 11 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index e198db6a764..f807a8c7c71 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -1658,7 +1658,15 @@ sub action_info {
} elsif ($opts{'data'}) {
# output format is changed to csv with " as quotes
# we need to determine the fields
- @datafields = split(',', $opts{'data'});
+ #
+ # Try to work around stupidiy in Windows where "," is interpreted in
+ # powershell (and cmd?)
+ # We optionally split at ":"
+ if ($opts{'data'} =~ m/:/) {
+ @datafields = split(':', $opts{'data'});
+ } else {
+ @datafields = split(',', $opts{'data'});
+ }
# check for correctness of data fields and whether remote is necessary
my $load_remote = 0;
for my $d (@datafields) {
@@ -8480,8 +8488,8 @@ C<--only-installed> and C<--only-remote> cannot both be specified.
=item B<--data C<item1,item2,...>>
-If the option C<--data> is given, its argument must be a comma separated
-list of field names from: C<name>, C<category>, C<localrev>,
+If the option C<--data> is given, its argument must be a comma or colon
+separated list of field names from: C<name>, C<category>, C<localrev>,
C<remoterev>, C<shortdesc>, C<longdesc>, C<installed>, C<size>,
C<relocatable>, C<depends>, C<cat-version>, C<cat-date>, C<cat-license>,
plus various C<cat-contact-*> fields (see below).