SPUG: SPUG Project Ideas
wwg at tscnet.com
wwg at tscnet.com
Fri Aug 11 17:20:16 CDT 2000
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/
More information about the spug-list
mailing list