diff options
author | Norbert Preining <preining@logic.at> | 2013-05-09 02:11:32 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2013-05-09 02:11:32 +0000 |
commit | a1ed98406f5475ce56823d49afe0ca4075a66ba8 (patch) | |
tree | d172fc56b55ba03145920f5c4547c8195d643145 /Master | |
parent | 3dac60ecc2c0049d849214ae34602c09744f150e (diff) |
add quoting to tlmgr.pl and fmtutil.sh
we need quotes around some arguments (hyphenation files, fmtutil .cnf file)
to enable spaces in dir names etc
git-svn-id: svn://tug.org/texlive/trunk@30343 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/fmtutil.sh | 2 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.sh b/Master/texmf-dist/scripts/texlive/fmtutil.sh index f437e2084d8..8ffbc59e05c 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil.sh +++ b/Master/texmf-dist/scripts/texlive/fmtutil.sh @@ -930,7 +930,7 @@ recreate_by_hyphenfile() ;; esac need_find_hyphenfile=true - match_cmd="echo \"\$this_hyphenfile\" | grep $hyphenfile >/dev/null" + match_cmd="echo \"\$this_hyphenfile\" | grep \"$hyphenfile\" >/dev/null" # No match before the loop: setmatch false diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index b21aa3f4496..cbf5d21df7e 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -821,7 +821,7 @@ sub handle_execute_actions } if ($localtlpdb->option("create_formats") && !$::regenerate_all_formats) { - $errors += do_cmd_and_check("fmtutil$sysmode --byhyphen $lang"); + $errors += do_cmd_and_check("fmtutil$sysmode --byhyphen \"$lang\""); } } } @@ -4292,7 +4292,7 @@ sub action_generate { debug("$prg: writing language.dat.lua data to $dest\n"); TeXLive::TLUtils::create_language_lua($localtlpdb, $dest, $localcfg); if ($opts{"rebuild-sys"}) { - do_cmd_and_check("fmtutil-sys --byhyphen $dest"); + do_cmd_and_check("fmtutil-sys --byhyphen \"$dest\""); } else { info("To make the newly-generated language.dat take effect," . " run fmtutil-sys --byhyphen $dest.\n"); @@ -4307,7 +4307,7 @@ sub action_generate { debug ("$prg: writing language.dat data to $dest\n"); TeXLive::TLUtils::create_language_dat($localtlpdb, $dest, $localcfg); if ($opts{"rebuild-sys"}) { - do_cmd_and_check("fmtutil-sys --byhyphen $dest"); + do_cmd_and_check("fmtutil-sys --byhyphen \"$dest\""); } else { info("To make the newly-generated language.dat take effect," . " run fmtutil-sys --byhyphen $dest.\n"); @@ -4322,7 +4322,7 @@ sub action_generate { debug("$prg: writing language.def data to $dest\n"); TeXLive::TLUtils::create_language_def($localtlpdb, $dest, $localcfg); if ($opts{"rebuild-sys"}) { - do_cmd_and_check("fmtutil-sys --byhyphen $dest"); + do_cmd_and_check("fmtutil-sys --byhyphen \"$dest\""); } else { info("To make the newly-generated language.def take effect," . " run fmtutil-sys --byhyphen $dest.\n"); |