Operating System - OpenVMS
1752812 Members
6188 Online
108789 Solutions
New Discussion

Subversion Client for OpenVMS

 
SOLVED
Go to solution
Larry Bohan
Advisor

Re: Subversion Client for OpenVMS

try $set proc/parse=extended ?

(I don't see a ready solution for trying
to do this with a one-liner pipe-command,
unless there's a java$ feature logical
for the argv processing)

$help set proc /parse
...
C/C++ programs that use the argc/argv mechanism will have unquoted arguments in lowercase unless the C Run-Time
Library logical DECC$ARGV_PARSE_STYLE is set to ENABLE. When DECC$ARGV_PARSE_STYLE is enabled, case is preserved in command
when DECC$ARGV_PARSE_STYLE is enabled,
case is preserved in command line arguments when the process is set up for extended DCL
parsing using /PARSE_STYLE=EXTENDED.
...
$!
$ xxx == ""
$ xxx == xxx + "pipe "
$ xxx == xxx + "define/user JAVA$FILENAME_CONTROLS 8 ; "
$ xxx == xxx + "define/user DECC$ARGV_PARSE_STYLE ENABLE ; "
$ xxx == xxx + "define/user DECC$EFS_CASE_PRESERVE ENABLE ; "
$ xxx == xxx + "define/user DECC$EFS_CHARSET ENABLE ; "
$ xxx == xxx + "set proc/parse=extended ; "
$ xxx == xxx + "mcr []print_argv.exe "
$!
$ set proc/parse=trad
$ xxx Alpha Bravo Charlie Delta
alpha bravo charlie delta
$ set proc/parse=ext
$ xxx Alpha Bravo Charlie Delta
Alpha Bravo Charlie Delta
$
$ ty print_argv.c
#include
int main( int argc, char *argv[] )
{
for( unsigned int i=1; (i < argc); i++ )
printf( "%s " , &argv[i][0] );

printf( "\n" );

} // end main() ...
$!
Ben Armstrong
Regular Advisor

Re: Subversion Client for OpenVMS

Ah, of course! That's it.

OK, I can live with having to do this command or else put double-quotes around mixed-case paths in the repo, as these are in the very small minority (and really should be renamed to all lowercase anyway ... it's just that this would immediately invalidate any workspaces, so I haven't bothered yet).

Ben