X-Spam-Check-By: sourceware.org Message-ID: <17393e3e0701101200m630f651ch5fe9b623fe7d33b@mail.gmail.com> Date: Wed, 10 Jan 2007 15:00:00 -0500 From: "Matt Wozniski" To: cygwin AT cygwin DOT com Subject: Re: cygwin-email utility clipping attached zips In-Reply-To: <45A52E6C.61D53739@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <006701c734d6$d8531e00$a501a8c0 AT CAM DOT ARTIMI DOT COM> <45A520B8 DOT 7090802 AT wi DOT rr DOT com> <45A52736 DOT 2040009 AT gmx DOT de> <45A5292A DOT 20606 AT gmx DOT de> <45A52E6C DOT 61D53739 AT dessent DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > Firstly this can be simplified to simply: > > email user AT example -s test -a $(echo *.pdf|sed "s/ /,/g") > but this will not work if any filename or pathname contains spaces. You > can solve that with: > > email user AT example -s test -a "$(sh -c 'IFS=,; echo "$*"' -- *.pdf)" \ >