From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 14:16:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E879106566B for ; Tue, 15 Jun 2010 14:16:42 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by mx1.freebsd.org (Postfix) with ESMTP id ED0D88FC0A for ; Tue, 15 Jun 2010 14:16:41 +0000 (UTC) Received: by red.stonehenge.com (Postfix, from userid 1001) id 714F828A20; Tue, 15 Jun 2010 07:16:41 -0700 (PDT) From: merlyn@stonehenge.com (Randal L. Schwartz) To: Aiza References: <4C173909.1050101@comclark.com> <4C174283.9090903@comclark.com> <20100615122014.44108373@gumby.homeunix.com> <20100615124709.254fe73e@gumby.homeunix.com> <4C177363.2050308@comclark.com> x-mayan-date: Long count = 12.19.17.8.0; tzolkin = 7 Ahau; haab = 13 Zotz Date: Tue, 15 Jun 2010 07:16:41 -0700 In-Reply-To: <4C177363.2050308@comclark.com> (Aiza's message of "Tue, 15 Jun 2010 20:34:43 +0800") Message-ID: <86631knzxy.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: RW , freebsd-questions@freebsd.org Subject: Re: * wildcard in.sh script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2010 14:16:42 -0000 >>>>> "Aiza" == Aiza writes: Aiza> This is the output. want to build list only containing file names Aiza> prefixed with job. Putting " " around the value on the command Aiza> line worked. But before this can go to production will have to fix Aiza> the code so no " " on the command value. You can't fix your script to do that. The expansion of '*' is a function of the shell before it even gets to your script. So this is not possible. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion