Package: texlive-bin / 2016.20160513.41080.dfsg-2+deb9u1

fix-mktexlsr-bashims Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fix mktexlsr bashism (thanks Thorsten Glaser) (Closes: #811092)
---
 texk/kpathsea/mktexlsr |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- texlive-bin.orig/texk/kpathsea/mktexlsr
+++ texlive-bin/texk/kpathsea/mktexlsr
@@ -177,8 +177,8 @@
     # Use same permissions as parent directory, minus x,s, or t bits.
     chmod `kpsestat -xst "$db_dir"` "$db_file"
   elif test -s "$db_file" \
-       && test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$ls_R_magic" \
-       && test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$old_ls_R_magic"; then
+       && test "x$(sed '1s/
$//;1q' "$db_file")" != "x$ls_R_magic" \
+       && test "x$(sed '1s/
$//;1q' "$db_file")" != "x$old_ls_R_magic"; then
     echo "$progname: $db_file: no magic string, skipping..." >&2
     continue
   fi