Re: About Shell proggramming.

2002-05-27 Thread Michael P. Soulier
On 27/05/02 Squirrel did speaketh: > apt_dest() > { > local m="$3" > m="debootstrap.invalid" Isn't it a tad redundant to assign $3 to m and then clobber m? Mike -- Michael P. Soulier <[EMAIL PROTECTED]>, GnuPG pub key: 5BC8BE08 "...the word HACK is used as a verb to indicat

Re: About Shell proggramming.

2002-05-27 Thread Squirrel
> On 27-May-2002 Squirrel wrote: > > apt_dest() > > { > > local m="$3" > > m="debootstrap.invalid" > > printf "$APTSTATE/lists/" > > echo "${m}_$4"|sed 's/\//_/g' > > } > > > > apt_dest rel woody file:/instmnt dists/woody/Release > > each argument is passed in as a number

Re: About Shell proggramming.

2002-05-27 Thread Sean 'Shaleh' Perry
On 27-May-2002 Squirrel wrote: > apt_dest() > { > local m="$3" > m="debootstrap.invalid" > printf "$APTSTATE/lists/" > echo "${m}_$4"|sed 's/\//_/g' > } > > apt_dest rel woody file:/instmnt dists/woody/Release each argument is passed in as a number parameter. So $3 is t

Re: About Shell proggramming.

2002-05-27 Thread Tom Cook
On 0, Squirrel <[EMAIL PROTECTED]> wrote: > apt_dest() > { > local m="$3" > m="debootstrap.invalid" > printf "$APTSTATE/lists/" > echo "${m}_$4"|sed 's/\//_/g' > } > > apt_dest rel woody file:/instmnt dists/woody/Release > > > what's the meaning of the above program,espe