Re: [Mingw-msys] Reconstruction of MSYS-1.0.11 test results.
- Date: Thu, 12 Jun 2008 15:37:54 +0200
- From: Michael DOUBEZ <michael.doubez@xxxxxxx>
- Subject: Re: [Mingw-msys] getopt error in msys Version 1.0.10
Ardi a écrit :
> It seems it cannot read $LONGOPTS" "$SHORTOPTS" "$@" properly.
>
> When I define:
>
> #>SHORTOPTS="hbvlor:"
>
> #>LONGOPTS="help,broadband,verbose,version,local,online,repository:"
>
> #>getopt -ou "$LONGOPTS" "$SHORTOPTS" "$@"
> -- 'help,broadband,verbose,version,local,online,repository:' 'hbvlor:'
>
> the "--" sign remains there. Is it correct?
If it is in a shell, it is normal. You have to export the variables or
use them in the same line:
export SHORTOPTS="hbvlor:"
export ONGOPTS="help,broadband,verbose,version,local,online,repository:"
And short options should follow the -o parameter:
getopt -ou "$SHORTOPTS" "$LONGOPTS" "$@"
--
Michael
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys