SPUG: SPUG Project Ideas

Andy Jacobs andyj at microsoft.com
Fri Aug 11 18:43:01 CDT 2000


This is one approach, but the changes would involve more than just deciding
what quote character to use - it affects internal quotes as well, which
might not be trivial to change...

 - Andy

> -----Original Message-----
> From: owner-spug-list at pm.org 
> [mailto:owner-spug-list at pm.org]On Behalf Of
> wwg at tscnet.com
> Sent: Friday, August 11, 2000 3:20 PM
> To: SPUG at cpan.org
> Subject: RE: SPUG: SPUG Project Ideas
> 
> 
> Why not just check the $OSNAME variable, and use the
> appropriate syntax?  We could have two variables:
> $nix_quote = a single quote, and
> $win_quote = a double quote.
> 
> Then, depending on the value of $OSNAME, use the
> appropriate quote variable to enclose the command.  This
> is similar to what I've done for path separators,
> end-of-line chars, etc.
> 
> Regards,
> Bill Graham
> Software Engineer
> 360 Powered Corp.
> www.360.com
> 
> Quoting Andy Jacobs <andyj at microsoft.com>:
> 
> > On Win32 there are problems quoting command-line
> programs.  The shell
> > doesn't recognize single quotes as anything special,
> so it thinks the
> > single
> > quote is just an apostrophe in the first parameter
> 
> =========================================
> This mail sent through Sinclair's WebMail
>       http://mail.sinclair.net
> 
> 
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - -
>      POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
>       Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
>   Replace ACTION by subscribe or unsubscribe, EMAIL by your 
> Email-address
>  For full traffic, use spug-list for LIST ; otherwise use 
> spug-list-digest
>   Seattle Perl Users Group (SPUG) Home Page: 
http://www.halcyon.com/spug/



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For full traffic, use spug-list for LIST ; otherwise use spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list