openldap-bugs@OpenLDAP.org
[Top] [All Lists]

Re: (ITS#3653) ldapsearch -b option doesn't work if there isn't a space

Subject: Re: (ITS#3653) ldapsearch -b option doesn't work if there isn't a space
From:
Date: Tue, 12 Apr 2005 09:31:59 GMT
At 10:27 PM 4/11/2005, ando@xxxxxxxxxx wrote:
>The behavior you see depends on the shell, that tricks getopt into 
>believing the argument to -b is the one after the "-b''";

Or its just that the version of getopt(3) used is playing non-POSIX
compatible games.  GNU getopt(3) does this.  There is an env variable
one can set to disable the non-POSIX behavior.  Anyways, its not an
OpenLDAP Software bug.

Kurt

>in fact, for 
>the shell, -b'' and -b are exactly the same, i.e. a string made of two 
>chars: a dash ("-") and a "b".  The documented usage" -b '' ", on the 
>contrary, makes the empty string '' a separate arg. 


<Prev in Thread] Current Thread [Next in Thread>