From owner-freebsd-questions Tue Mar 25 14:36:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA16001 for questions-outgoing; Tue, 25 Mar 1997 14:36:07 -0800 (PST) Received: from net1.netview.net (netview.net [199.3.74.250]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA15942 for ; Tue, 25 Mar 1997 14:36:02 -0800 (PST) Received: from corona ([206.223.98.8]) by net1.netview.net (8.7.5/8.6.12) with SMTP id RAA24879 for ; Tue, 25 Mar 1997 17:35:17 -0500 (EST) Message-Id: <3.0.1.32.19970325173551.00aa5260@199.3.74.250> X-Sender: jrclark@199.3.74.250 X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Tue, 25 Mar 1997 17:35:51 To: questions@freebsd.org From: John Clark Subject: BASH -> passing cmd line params Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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]