[Info-vax] SEARCH ''

Steven Schweda sms.antinode at gmail.com
Mon Jan 17 16:55:43 EST 2022


> I had occasion to SEARCH for the string '' in a file. 
> 
> Is there any way to do this? (It gets expanded as an empty symbol; I 
> don't know how to prevent that.) 

   I know of none.  Zip would like to quote or escape all special
characters when it creates a command line to use with system() (for its
"-T[T]" option, to run UnZip to test an archive), but I couldn't see a
way to do this.  Hence this comment in zip.c:quote_arg():

 * On VMS, quoted double apostrophes are also special.  Currently not
 * handled.  (How?  Quotation marks are needed for (upper-)case
 * preservation.  Double apostrophes in quotation marks are interpreted
 * (symbol evaluation).  SMS sees no way to handle "fr''ed".  "fr'""'ed"
 * becomes >fr'"'ed<, for example.)  Not a problem for file specs, but
 * imposes a restriction on passwords.

   If there _is_ a way, then please let me know.

   (Building an argv[], and not using system(), would be one way in the
Zip case, but a general DCL method would be nice to have.)



More information about the Info-vax mailing list