Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 39668 invoked from network); 12 Jun 2008 16:40:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 16:40:46 -0000 Received: (qmail 95083 invoked by uid 500); 12 Jun 2008 16:40:47 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 95005 invoked by uid 500); 12 Jun 2008 16:40:47 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 94994 invoked by uid 99); 12 Jun 2008 16:40:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 09:40:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.dillon@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 16:39:57 +0000 Received: by ti-out-0910.google.com with SMTP id b6so1218904tic.1 for ; Thu, 12 Jun 2008 09:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=JL4cmMSy6t10cwEQW4PNg4PLCfVpyf0qIJK4BWv9UxU=; b=YzF+YTF2HAvlx0DqpaQQoxETdYKW5kNVXeeLsBW8ILVrnhrORR0+lXQv/xMQ0rRAE5 p/oavcaWcTfjM9kPDhqAOHyJ9/hR6ckHjuzEXp7occlE5G0LT2CzMpy9nHecwdVpgUiz bdooRXoNge4RAHOIJgACe6mVs8aB9NwhQcFF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=nuad1s1LwgVJit2VxINfUv2TUtzMtC/QLhuFZKRpGxGM5ydYW3prxrt1G28ColJKeX 1eogEBIX/+k3llGA4VEvqWVRrvEuLE4eH9fPkymfhF8MTlxzEWdoP/XGwiK8zLLDPtKr ddMKWCiOKcYtB3qNr1vZfvXe6IyzT2cbZAuac= Received: by 10.110.3.15 with SMTP id 15mr842486tic.15.1213288814015; Thu, 12 Jun 2008 09:40:14 -0700 (PDT) Received: from ?10.0.1.97? ( [58.8.14.141]) by mx.google.com with ESMTPS id b4sm1668089tic.14.2008.06.12.09.40.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Jun 2008 09:40:13 -0700 (PDT) Message-Id: <7AA8FBE8-2669-4E59-8B61-6F6E5AA6C324@planet57.com> From: Jason Dillon To: dev@geronimo.apache.org In-Reply-To: <4851331E.2090202@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: GShell - source Date: Thu, 12 Jun 2008 23:40:09 +0700 References: <4851331E.2090202@gmail.com> X-Mailer: Apple Mail (2.924) Sender: Jason Dillon X-Virus-Checked: Checked by ClamAV on apache.org The "source" command works very much like the "source" command ("." operator) in Bash. It takes an external file (or URL) and reads the content in line-by-line, executing each line. So for example, if you have a file named "test.gsh" with contents of: echo "hello" set a=1 echo "A is now: ${a}" echo "goodbye" Then you could "source" that file, like: jason@Bliss.local:/> source ./test.gsh hello A is now: 1 goodbye --jason On Jun 12, 2008, at 9:30 PM, Hernan Cunico wrote: > Howdy all, > I was wondering what is the "source" command option for in GShell. > The command help does not tell much > > Available commands: > source Load a file/url into the current shell > -- > > VAL Source file > -h (--help) Display this help message