HP3000-L Archives

February 2002, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Tue, 5 Feb 2002 13:29:34 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
Instead of escaping the interior quotes with \, double them instead:

:print shtest
xeq sh.hpbin.sys '-c "/BIXBY/PUB/SHPARMS foo ""a b c"" bar"'

:print shparms
#!/bin/sh

echo "parm 1 = $1"
echo "parm 2 = $2"
echo "parm 3 = $3"

:xeq shtest
parm 1 = foo
parm 2 = a b c
parm 3 = bar

- Mark B.

Peter Osborne wrote:

> Hello All,
>
> Quick question about the shell. I'm trying to do something like this from an
> MPE prompt:
>
> sh.hpbin.sys '-c "cvs commit -R -m \"my cvs message\" " '
>
> But it doesn't like me using \" as a third level of quotes, is there a way of
> getting more quote levels? I can't use the ` character as MPE doesn't like it
> and the shell executes anything that use the backtick quotes.
>
> Thanks,
> -Pete
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
>


--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2