From: Carlos Carvalho <carlos@riglos.fisica.ufpr.br>
To: zsh-workers@math.gatech.edu
Subject: beta 19 cannot run this script
Date: Wed, 5 Jun 96 11:59 EST [thread overview]
Message-ID: <m0uRK3H-00001zC@riglos.fisica.ufpr.br> (raw)
I had to link /bin/sh to zsh in order to make automatic tex font
generation work. However, zsh (called as sh), doesn't run this script:
#! /bin/sh
# apsfilter 4.9
# by Andreas Klemm
# Mon Feb 6 19:54:12 MET 1995
SUPPORTED_FILTERS="\
gs \
dvips \
a2ps \
ras2ps \
giftoppm \
pnmtops \
ppmtopgm \
fig2dev \
rasttopnm \
tifftopnm \
gzip \
compress \
pack \
djpeg \
melt \
"
# are we called by SETUP or are we standalone ?
# if standalone, then grab APS_BASEDIR from /etc/printcap file
if [ ! $APS_BASEDIR ]; then
APS_BASEDIR=`grep APS_BASEDIR /etc/printcap | cut -d ':' -f 2`
export APS_BASEDIR
fi
. $APS_BASEDIR/global/GLOBAL.sh
echo "cleaning global config file..."
if [ -f $FILTERS_FOUND ]; then
: > $FILTERS_FOUND
fi
# extract searchpatch for find from PATH
SEARCHPATH=`echo $PATH | sed -e "s/:/\ /g"`
echo "looking for available filter programs on this system..."
for filter in $SUPPORTED_FILTERS
do
FILTER=`echo $filter | tr 'a-z' 'A-Z'`
for path in $SEARCHPATH
do
if [ -f $path/$filter ]
then
set HAVE_$FILTER="True" \
&& echo "found filter $filter" \
&& echo "HAVE_$FILTER=True" >> $FILTERS_FOUND
fi
done
done
if [ -f $FILTERS_FOUND ]; then
sort < $FILTERS_FOUND | uniq > /tmp/apsfilterrc.$$
mv /tmp/apsfilterrc.$$ $FILTERS_FOUND
else
# a system without special filter
echo "# no supported filters found during filtersetup ?!" >> $FILTERS_FOUND
echo "# if you suppose to add filters like dvips, gs,..." >> $FILTERS_FOUND
echo "# later, then run $APS_BASEDIR/setup/filtersetup " >> $FILTERS_FOUND
echo "# again ! " >> $FILTERS_FOUND
# mail the poor result !!!
cat $FILTERS_FOUND | $MAIL root > /dev/null 2>&1
fi
The error is:
./filtersetup: [: argument expected [40]
/global/GLOBAL.sh: .: no such file or directory: /global/GLOBAL.sh [45]
cleaning global config file...
./filtersetup: [: argument expected [49]
looking for available filter programs on this system...
found filter gs
./filtersetup: no such file or directory: [66]
./filtersetup: [: argument expected [71]
Carlos
next reply other threads:[~1996-06-05 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-05 16:59 Carlos Carvalho [this message]
1996-06-05 16:03 ` Bart Schaefer
1996-06-05 19:31 ` Carlos Carvalho
1996-06-05 18:11 ` Mike Kazda
1996-06-05 21:11 ` SOLVED: " Carlos Carvalho
1996-06-05 18:00 Eskandar Ensafi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0uRK3H-00001zC@riglos.fisica.ufpr.br \
--to=carlos@riglos.fisica.ufpr.br \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).