[j-nsp] Is it possible to pass apostrophe character(ASCII dec code 39) as an argument value to SLAX script?
Martin T
m4rtntns at gmail.com
Thu Jul 12 17:03:48 EDT 2018
On Thu, Jul 12, 2018 at 11:20 PM Phil Shafer <phil at juniper.net> wrote:
>
> Martin T writes:
> >Is it possible to pass apostrophe character(ASCII dec code 39) as an
> >argument value to SLAX script? I have tried to escape it, but it does
> >not seem to work:
>
> Quote it:
>
> version 1.2;
>
> param $char = "-";
>
> main <op-script-results> {
> <output> "got: " _ $char;
> }
>
> root at box> op apos char "`"
> got: `
>
> root at box>
>
> Thanks,
> Phil
Phil,
aren't you using grave accent("echo -e "\x60"") character? I was using
"echo -e "\x27"" character.
thanks,
Martin
More information about the juniper-nsp
mailing list