bash scripting question (variables and spaces)

2002-03-19 Thread Karsten Heymann
Hi, I have once again come upon bash problem I can't solve. I'm writing a little bash frontend and one of the programs expects a option that includes spaces and is composed from two other shell var's. Example: #!/bin/bash A="Hello" B="Karsten" C=$A $B someprog --greeting $C Whatever I do now, -

Re: bash scripting question (variables and spaces)

2002-03-19 Thread Craig Dickson
This should work, though I have not actually tried it: #!/bin/bash A="Hello" B="Karsten" C="$A $B" someprog --greeting "$C" pgpiX8Z2JqpWm.pgp Description: PGP signature

Re: bash scripting question (variables and spaces)

2002-03-19 Thread ktb
On Tue, Mar 19, 2002 at 08:35:53PM +0100, Karsten Heymann wrote: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing a > little bash frontend and one of the programs expects a option that includes > spaces and is composed from two other shell var's. Example: > > #!/bin/b

Re: bash scripting question (variables and spaces)

2002-03-19 Thread J.H.M. Dassen \(Ray\)
On Tue, Mar 19, 2002 at 20:35:53 +0100, Karsten Heymann wrote: > A="Hello" > B="Karsten" > C=$A $B > someprog --greeting $C Variable expansion happens first: someprog --greeting Hello Karsten then tokenising, so someprog get three arguments: 1. --greeting 2. Hello

Re: bash scripting question (variables and spaces)

2002-03-19 Thread Paul F. Pearson
On Tue, 19 Mar 2002, Karsten Heymann wrote: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing a > little bash frontend and one of the programs expects a option that includes > spaces and is composed from two other shell var's. Example: > > #!/bin/bash > A="Hello" > B=

Re: bash scripting question (variables and spaces)

2002-03-19 Thread David Z Maze
Karsten Heymann <[EMAIL PROTECTED]> writes: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing > a little bash frontend and one of the programs expects a option that > includes spaces and is composed from two other shell var's. Example: > > #!/bin/bash > A="Hello" > B="

Re: bash scripting question (variables and spaces)

2002-03-19 Thread Gustavo Noronha Silva
On Tue, 19 Mar 2002 20:35:53 +0100 Karsten Heymann <[EMAIL PROTECTED]> wrote: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing a > little bash frontend and one of the programs expects a option that includes > spaces and is composed from two other shell var's. Example:

Re: bash scripting question (variables and spaces)

2002-03-19 Thread Angus D Madden
Karsten Heymann, Tue, Mar 19, 2002 at 08:35:53PM +0100: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing a > little bash frontend and one of the programs expects a option that includes > spaces and is composed from two other shell var's. Example: > > #!/bin/bash > A=

Re: bash scripting question (variables and spaces)

2002-03-19 Thread Brett Parker
On Tue, Mar 19, 2002 at 08:35:53PM +0100, Karsten Heymann wrote: > Hi, > > I have once again come upon bash problem I can't solve. I'm writing a > little bash frontend and one of the programs expects a option that includes > spaces and is composed from two other shell var's. Example: > > #!/bin/b

Thank you all! (Was: Re: bash scripting question (variables and spaces))

2002-03-20 Thread Karsten Heymann
Thank you all! Now it works. * Gustavo Noronha Silva <[EMAIL PROTECTED]> [020320 09:25]: ... > C="$A $B" -- Karsten Heymann <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> CAU-University Kiel, Germany Registered Linux User #221014 (http://counter.li.org)