[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash scripting question (variables and spaces)

On Tue, 19 Mar 2002 20:35:53 +0100
Karsten Heymann <karsten.heymann@gmx.de> 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="Karsten"
> C=$A $B 
> someprog --greeting $C
try someprog --greeting "$C", that should work... indeed, I think
you should do:

C="$A $B"



kov@debian.org: Gustavo Noronha <http://www.metainfo.org/kov>
Debian: <http://www.debian.org> * <http://debian-br.cipsga.org.br>

Reply to: