From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 2 20:37:32 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 A9D1C1065688 for ; Wed, 2 Nov 2011 20:37:32 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 315BD8FC08 for ; Wed, 2 Nov 2011 20:37:31 +0000 (UTC) Received: by bkbzs2 with SMTP id zs2so732100bkb.13 for ; Wed, 02 Nov 2011 13:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ZtAbKqSUZYxKwnjlvI3j0OI1evY6hdIFLmr2wBjpdcU=; b=XeJ8xwyTF20G0h8B1XVhRqC1I7+kcRU+t+QGmf9N7Ox6dXiPKmwX9DGqCSfqpEHORX 0IbfeJiOdFHW0S6r6hucxm1DnIJXkg/YLMN0LQZ767tNnSSWvwxQar1T8geAbCdRew4U /payPdA/5xSkfVs8G1/Uusny/+uHsYss1u4t0= MIME-Version: 1.0 Received: by 10.182.7.100 with SMTP id i4mr1196168oba.66.1320266250559; Wed, 02 Nov 2011 13:37:30 -0700 (PDT) Received: by 10.182.122.33 with HTTP; Wed, 2 Nov 2011 13:37:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Nov 2011 13:37:30 -0700 Message-ID: From: Garrett Cooper To: Mark Saad Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 02 Nov 2011 20:37:32 -0000 On Wed, Nov 2, 2011 at 1:28 PM, Mark Saad wrote: > Hackers > =A0What 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 > > > =A0# sh xxx > 88318 =A0p0 =A0S+ =A0 =A0 0:00.00 sh xxx > 88320 =A0p0 =A0R+ =A0 =A0 0:00.00 sh xxx > 88321 =A0p0 =A0R+ =A0 =A0 0:00.00 sh xxx No 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