Hi,

Xun Sun wrote:
On 1/12/06, Peter Kruse <[EMAIL PROTECTED]> wrote:

Hello,

In one of my RAs there is a line like this:

( exportfs ; cat /proc/fs/nfs/exports ) | grep -q "^${export_dir}[   ]"


I guess it's a shell specific behavior. If you are using Bash, I would
suggest removing the subshell construct.



but using a pipe already creates a subshell, doesn't it?
But if I replace above with this:

{ ${exportfs} ; cat /proc/fs/nfs/exports ; } | grep -q "^${export_dir}[ ]"

I still get the same error.  Only if do like this:

cat /proc/fs/nfs/exports | grep -q "^${export_dir}[ ]"

the error goes away.

Are there known issues with bash concerning this?

        Peter
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to