Re: Bug#456796: getopt and parameters with spaces

2008-01-08 Thread Friedhelm Usenet Waitzmann
T o n g: >Package: util-linux >Version: 2.13-8 >Severity: normal >Hi, >I seem to have found a bug of getopt from the util-linux >package. Please correct me if I'm wrong. >I believe that the suggested way to call getopt is > eval set -- `getopt -o -- "$@"` >But I found that it can't handle

Re: getopt and parameters with spaces

2007-12-18 Thread T o n g
On Tue, 18 Dec 2007 21:09:58 +0100, Frodo Looijaard wrote: >> I believe that the suggested way to call getopt is >> >> eval set -- `getopt -o -- "$@"` > > No, it is actually: > eval set -- "`getopt -o -- "$@"`" > > Note the extra set of double quotes! Ops, sill me. Thanks for reply Frod

Re: getopt and parameters with spaces

2007-12-18 Thread Frodo Looijaard
On Mon, Dec 17, 2007 at 06:29:01PM -0500, T o n g wrote: > I seem to have found a bug of getopt from the util-linux > package. Please correct me if I'm wrong. > > I believe that the suggested way to call getopt is > > eval set -- `getopt -o -- "$@"` No, it is actually: eval set -- "`get