[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pipes & ExecResult/ReturnsZero

From: Martin, Jason H
Subject: Pipes & ExecResult/ReturnsZero
Date: Tue, 29 Nov 2005 14:29:44 -0800

Is it expected that pipe characters will continue to work in ExecResult
even though they no longer work in ReturnsZero? ExecResult still honors
pipe characters inside double-quotes, while ReturnsZero only honors them
inside single quotes.

localdate = ( ExecResult(/bin/sh -c "/bin/date | grep 2005") )

Whereas ReturnsZero requires opposite quoting to work with pipes
ResolvesX = ( ReturnsZero(/bin/sh -c 'nslookup ""  2>&1
| grep >/dev/null') )

It seems inconsistent to make these two functions require opposite
quoting. Was this intended, or will there be a ShellCommandExecResult in
the future?

Thank you,
-Jason Martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]