From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 3 15:31:30 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65CF0106564A for ; Thu, 3 Nov 2011 15:31:30 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id EE9548FC19 for ; Thu, 3 Nov 2011 15:31:29 +0000 (UTC) Received: by faar19 with SMTP id r19so2477489faa.13 for ; Thu, 03 Nov 2011 08:31:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.14.3 with SMTP id e3mr17636279faa.25.1320334288774; Thu, 03 Nov 2011 08:31:28 -0700 (PDT) Received: by 10.223.96.133 with HTTP; Thu, 3 Nov 2011 08:31:28 -0700 (PDT) X-Originating-IP: [68.239.250.164] In-Reply-To: References: Date: Thu, 3 Nov 2011 11:31:28 -0400 Message-ID: From: Mark Saad To: Garrett Cooper Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: What is going on with ash / sh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 15:31:30 -0000 On Wed, Nov 2, 2011 at 4:37 PM, Garrett Cooper wrote: > On Wed, Nov 2, 2011 at 1:28 PM, Mark Saad wrote: >> Hackers >> =C2=A0What is going on here, if I run the following shell script, what i= s >> the expected output . The script is named xxx >> >> #!/bin/sh >> ps -ax | grep -v grep | grep xxx >> >> Here is what I see >> >> >> =C2=A0# sh xxx >> 88318 =C2=A0p0 =C2=A0S+ =C2=A0 =C2=A0 0:00.00 sh xxx >> 88320 =C2=A0p0 =C2=A0R+ =C2=A0 =C2=A0 0:00.00 sh xxx >> 88321 =C2=A0p0 =C2=A0R+ =C2=A0 =C2=A0 0:00.00 sh xxx > > =C2=A0 =C2=A0No idea. jobs isn't a shell builtin so you can't verify what= jobs > are currently running via the shell if there are any. What version of > FreeBSD are you using and what do your $ENV and .profile files look > like? > Thanks, > -Garrett > I ran this test on 7.3-RELEASE and 8.2-RELEASE and I do not have anything weird in my .profiles or env. This is on a fresh install of each os. --=20 mark saad | nonesuch@longcount.org