You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by vijay <vi...@collab.net> on 2011/10/14 16:15:33 UTC
"svnmucc put" fails if it reads from standard input
From "svnmucc --help",
<snip>
put SRC-FILE URL add or modify file URL with contents copied from
SRC-FILE (use "-" to read from
standard input)
</snip>
If I use "-" to read from stdin, "svnmucc put" fails with the following
error.
$ svnmucc put - <URL>
svnmucc: invalid option:
../tools/client-side/svnmucc/svnmucc.c:875: (apr_err=70012)
svnmucc: E070012: getopt failure: Bad character specified on command line
I checked in <apr-source-tree>/misc/unix/getopt.c:apr_getopt_long(). It
seems they are not accepting bare "-" while parsing the options.
As of now, I can work it around in this way "svnmucc put /dev/fd/0 <URL>".
Thanks & Regards,
Vijayaguru
Re: "svnmucc put" fails if it reads from standard input
Posted by vijay <vi...@collab.net>.
On Friday 14 October 2011 07:56 PM, Philip Martin wrote:
> vijay<vi...@collab.net> writes:
>
>> $ svnmucc put -<URL>
>> svnmucc: invalid option:
>> ../tools/client-side/svnmucc/svnmucc.c:875: (apr_err=70012)
>> svnmucc: E070012: getopt failure: Bad character specified on command line
> Like other Unix utilities you need to use -- to end the options:
>
> svnmucc -m message -- put -<URL>
>
Thanks philipm.
Regards,
Vijayaguru
Re: "svnmucc put" fails if it reads from standard input
Posted by Philip Martin <ph...@wandisco.com>.
vijay <vi...@collab.net> writes:
> $ svnmucc put - <URL>
> svnmucc: invalid option:
> ../tools/client-side/svnmucc/svnmucc.c:875: (apr_err=70012)
> svnmucc: E070012: getopt failure: Bad character specified on command line
Like other Unix utilities you need to use -- to end the options:
svnmucc -m message -- put - <URL>
--
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com