cygwin-email utility clipping attached zips

Brian Dessent
Wed Jan 10 18:20:00 GMT 2007

Saro Engels wrote:

> I wasn't right:
> It should be:
> $ file=*.pdf; file=`echo $file | sed "s/ /,/g"`
> $ echo $file
> $ email -s test -a $file < sample.txt

Firstly this can be simplified to simply:

email user@example -s test -a $(echo *.pdf|sed "s/ /,/g") <sample.txt

but this will not work if any filename or pathname contains spaces.  You
can solve that with:

email user@example -s test -a "$(sh -c 'IFS=,; echo "$*"' -- *.pdf)" \


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list