[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

"svnmucc put" fails if it reads from standard input

From: vijay <vijay_at_collab.net>
Date: Fri, 14 Oct 2011 19:45:33 +0530

 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
Received on 2011-10-14 16:16:15 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.