[tex-live] Re: Problem with TeXLive install-pkg.sh on Mac OS X
Thomas Esser
te at dbs.uni-hannover.de
Fri Sep 19 16:13:00 CEST 2003
> > (cd $CDDIR; $XARGS sh -c '$TARPROG cf - $* | (cd '"$TEXDIR"'; umask
> > 0;$TARPROG xf -)' sh <<$work_dir/files)
>
> I don't feel enough of a shell expert to know why the inner $TARPROG
> ends up empty. can anyone else comment?
The outer shell dous not expand $TARPROG, because of the single
quotes. The inner shell can not expand $TARPROG properly, because it
does not get the right value for it. Passing TARPROG via environment
is a solution. The same solution could be used to avoid breaking the
singlequotes for TEXDIR.
I suggest:
(
cd "$CDDIR"
TARPROG=$TARPROG TEXDIR=$TEXDIR $XARGS \
sh -c '$TARPROG cf - "$@" | (cd "$TEXDIR"; umask 0; $TARPROG xf -)' sh
) <$work_dir/files
Thomas
More information about the tex-live
mailing list