🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Tom Cunningham Fri, 05 Sep 1986 22:09
Quotes on DCL command line
#331
Author: Tom Cunningham
Date: Fri, 05 Sep 1986 22:09
18 lines
1387 bytes
Any of you VMS folks know a clever way to cleanly quote a single quote
on the DCL command line?  I have an application written in VAX C that
does its own command line parsing via argc/argv.  One type of argument
needs to be triple quoted thusly: '''argval'''.  In other words, all
six single quotes, along with argval, need to get passed in to the
application.  I realize the single quote is some kind of whizbang
metacharacter in DCL, but I have really had to jump through hoops to
make this work.  Any suggestions?

Also, does anyone know of a tar, PD or otherwise, that works with VMS?
Many thanks to those of you who responded to my query about software
distribution!

Tom Cunningham     "Good, fast, cheap -- select two."
USPS:  Motorola Inc.  6501 William Cannon Dr. W.  Austin, TX 78735-8598
UUCP:  {ihnp4,seismo,ctvax,gatech}!ut-sally!oakhill!tomc
       sun!oakhill!tomc
Phone: 512-440-2953
Re: Quotes on DCL command line
#333
Author: Tom Armistead
Date: Mon, 08 Sep 1986 21:54
32 lines
2145 bytes
In article <759@oakhill.UUCP>, tomc@oakhill.UUCP (Tom Cunningham) writes:
> Any of you VMS folks know a clever way to cleanly quote a single quote
> on the DCL command line?  I have an application written in VAX C that
> does its own command line parsing via argc/argv.  One type of argument
> needs to be triple quoted thusly: '''argval'''.  In other words, all
> six single quotes, along with argval, need to get passed in to the
> application.  I realize the single quote is some kind of whizbang
> metacharacter in DCL, but I have really had to jump through hoops to
> make this work.  Any suggestions?

I have had problems much like this in the past and never found any real
solutions, the quote ' and " are special characters to DCL and never
passed as arguments without haveing to to type a long command line
like "'"+"'"+"'"+"argval"+"'"+"'"+"'" to achieve this purpose, I think
you will run into a dead end trying to figure a way around this.
My solutions in the past have been to us the back quote, `. and change
that to the regular quote in my pgm. I really don't think there is any
other viable solution unless you to a gets() from within your program
These strings like '''argval''' can be passed at that level...

Good luck, and I would really be interested in any solution that you
may or may not come up with

Tom
---
UUCP:
                          ihnp4\
                                \killer!toma
                                /
  drillsys!infoswx!convex!dj3b1/

Tom Armistead
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads