Karsten Heymann writes: > 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
use "$C" instead of $C: % cat junk #!/bin/bash A="hello" B="there" C="$A $B" ./junk2 "$C" % cat junk2 #!/bin/bash echo $1 % ./junk hello there Andrew.