Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2011 16:28:51 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        freebsd-hackers@freebsd.org
Subject:   What is going on with ash / sh
Message-ID:  <CAMXt9NYcO4JsZRUr_TVzoE08F7hyED4EUM5RBH2w6gC5_NSe5Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hackers
 What is going on here, if I run the following shell script, what is
the expected output . The script is named xxx

#!/bin/sh
ps -ax | grep -v grep | grep xxx

Here is what I see


 # sh xxx
88318  p0  S+     0:00.00 sh xxx
88320  p0  R+     0:00.00 sh xxx
88321  p0  R+     0:00.00 sh xxx


Can someone explain this ?

-- 
mark saad | nonesuch@longcount.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMXt9NYcO4JsZRUr_TVzoE08F7hyED4EUM5RBH2w6gC5_NSe5Q>