[tex-live] Comment on Re: TeXLive-CD/DVD (Installation)

Zdenek Wagner zdenek.wagner at gmail.com
Fri May 25 09:59:39 CEST 2007


2007/5/25, Oliver Bandel <oliver at first.in-berlin.de>:
> On Thu, May 24, 2007 at 07:01:54PM +0200, David Kastrup wrote:
> > "Zdenek Wagner" <zdenek.wagner at gmail.com> writes:
> >
> [...]
> > > #!/bin/bash
> > > echo "Number of parameters = $#"
> > > if [ $# -eq 1 ]
> > > then
> > >  ./param $1
> > > fi
> > >
> > > If you call it with an escaped space within the first parameter, you'll get:
> > >
> > > [wagner at cluster1 wagner]$ ./param some\ text
> > > Number of parameters = 1
> > > Number of parameters = 2
> > >
> > > Beware! If you call this script with one parameter, you will fall into
> > > an endless loop!
> >
> > Nonsense.  You don't need to "reescape".  All you need is properly
> > quote:
> >
> > ./param "$1"
> >
> > That's all.  Or
> >
> > ./param "$@"
> >
> [...]
>
> What is param?

That's the name of the small sample script in this mail.
>
> first:~ oliver$ param
> -bash: param: command not found
> first:~ oliver$
>
> Ciao,
>    Oliver
>


-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list