Re: OT: bash positional parameters

2005-06-16 Thread Chris F.A. Johnson
On 2005-06-16, michael wrote: > Folks > > For some reason out of my control I need to pass the name of an env var > to a bash script and then, within said script, determine the value of > that env var. > > For example if my script is 'myScript' and assume I've done > > $ export INPUTFILE=/tmp

Re: OT: bash positional parameters

2005-06-16 Thread michael
On Thu, 2005-06-16 at 21:25 +0200, Nicos Gollan wrote: > On Thursday June 16 2005 21:13, michael wrote: > > For some reason out of my control I need to pass the name of an env var > > to a bash script and then, within said script, determine the value of > > that env var. > > > > [...] > > > > I've

Re: OT: bash positional parameters

2005-06-16 Thread Nicos Gollan
On Thursday June 16 2005 21:13, michael wrote: > For some reason out of my control I need to pass the name of an env var > to a bash script and then, within said script, determine the value of > that env var. > > [...] > > I've tried various combos inside the script like > echo ${$1} That was pr