From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27853 invoked from network); 29 Mar 2009 15:13:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Mar 2009 15:13:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 47010 invoked from network); 29 Mar 2009 15:13:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Mar 2009 15:13:31 -0000 Received: (qmail 15949 invoked by alias); 29 Mar 2009 15:13:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13990 Received: (qmail 15939 invoked from network); 29 Mar 2009 15:13:12 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Mar 2009 15:13:12 -0000 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id AF2898026E27 for ; Sun, 29 Mar 2009 17:12:57 +0200 (CEST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Lnwgx-0002pL-5r for zsh-users@sunsite.dk; Sun, 29 Mar 2009 15:12:55 +0000 Received: from 93-36-181-215.ip61.fastwebnet.it ([93.36.181.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2009 15:12:55 +0000 Received: from xtekhne by 93-36-181-215.ip61.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2009 15:12:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Pol Subject: Re: using brackets in scripts Date: Sun, 29 Mar 2009 17:12:43 +0200 Organization: (Soft) Message-ID: References: <200903291445.32918.arvidjaar@gmail.com> <20090329113959.49732.qmail@smasher.org> Reply-To: xtekhne@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-36-181-215.ip61.fastwebnet.it Mail-Copies-To: xtekhne@gmail.com User-Agent: KNode/0.10.9 Sender: news X-Virus-Scanned: ClamAV 0.92.1/9179/Sun Mar 29 16:34:11 2009 on bifrost X-Virus-Status: Clean Atom Smasher wrote: sudo zsh -c ls -l save/*(.) > > or, try setting "SHELL=zsh" towards the top of the script, before invoking > sudo. > Problem solved: i have moved the line #!/bin/zsh to the top of the script (a few comment lines were on top, at my first attempt) Thank you, anyway ---P