From e3f19eccfcc4954d765dd3a4e71593b532e2b24b Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 26 Feb 2023 01:18:43 +0100 Subject: Fix environment variable --- functions/pdfpextr.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/pdfpextr.fish b/functions/pdfpextr.fish index 8e4116f..a550bb3 100644 --- a/functions/pdfpextr.fish +++ b/functions/pdfpextr.fish @@ -4,7 +4,7 @@ function pdfpextr -a pStart pEnd filename # $2 is the last page of the range to extract # $3 is the input file # output file will be named "inputfile_pXX-pYY.pdf" - set -x fileOut (string split -r -m1 . $filename)[1]_p{$pStart}-p{$pEnd}.pdf + set -l fileOut (string split -r -m1 . $filename)[1]_p{$pStart}-p{$pEnd}.pdf printf $fileOut gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \ -- cgit v1.2.3