texlive[71448] Master/texmf-dist/scripts/psviewer/psviewer.ps1:

commits+siepo at tug.org commits+siepo at tug.org
Thu Jun 6 09:50:27 CEST 2024


Revision: 71448
          https://tug.org/svn/texlive?view=revision&revision=71448
Author:   siepo
Date:     2024-06-06 09:50:27 +0200 (Thu, 06 Jun 2024)
Log Message:
-----------
Removed workaround for argument with spaces

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/psviewer/psviewer.ps1

Modified: trunk/Master/texmf-dist/scripts/psviewer/psviewer.ps1
===================================================================
--- trunk/Master/texmf-dist/scripts/psviewer/psviewer.ps1	2024-06-06 07:46:11 UTC (rev 71447)
+++ trunk/Master/texmf-dist/scripts/psviewer/psviewer.ps1	2024-06-06 07:50:27 UTC (rev 71448)
@@ -20,10 +20,7 @@
   [System.Windows.MessageBox]::Show($msg, 'Missing argument', 'OK', 'Hand')
   exit 1
 }
-# powershell makes it difficult to enter parameters with spaces,
-# e.g. double quotes won't do. So I simply assume all the pieces
-# are intended as one filename:
-$f = $args -join ' '
+$f = $args[0]
 if (-not (test-path -path $f -pathtype leaf)) {
   [System.Windows.MessageBox]::Show(
     "$f does not exist", 'Error', 'OK', 'Hand')



More information about the tex-live-commits mailing list.