Date: Tue, 25 Mar 1997 17:35:51 From: John Clark <email@john.net> To: questions@freebsd.org Subject: BASH -> passing cmd line params Message-ID: <3.0.1.32.19970325173551.00aa5260@199.3.74.250>
next in thread | raw e-mail | index | archive | help
Hello, I am having trouble passing a variable with a space in it as a single parameter. Is there a way to do this? #!/bin/sh PARAM1="hello world" PARAM2="foo" PARAM3="bar" mycommand $PARAM1 $PARAM2 $PARAM3 The output of the above script shows 4 command line variables: 1=hello, 2=world, 3=foo, 4=bar I would like: 1=hello world, 2=foo, 3=bar Any help would be appreciated. John Clark [email@john.net]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19970325173551.00aa5260>