From owner-freebsd-questions Thu Aug 2 11:46:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc23.worldnet.att.net (mtiwmhc23.worldnet.att.net [204.127.131.48]) by hub.freebsd.org (Postfix) with ESMTP id 7D17037B401 for ; Thu, 2 Aug 2001 11:46:20 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.130]) by mtiwmhc23.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010802184613.DWFM8490.mtiwmhc23.worldnet.att.net@worldnet.att.net> for ; Thu, 2 Aug 2001 18:46:13 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 8E07450B93; Thu, 2 Aug 2001 14:46:10 -0400 (EDT) Date: Thu, 2 Aug 2001 14:46:10 -0400 From: parv To: f-q Subject: jobs count in ksh93 PS1 Message-ID: <20010802144610.A21275@moo.holy.cow> Mail-Followup-To: f-q Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i was wondering if there is a better way to put jobs count, in PS1 in ksh93, than the following (partial PS1 set in ~/.kshrc which is "ENV" in ~/.profile)... # PS1="jobs: '$(jobs | wc -l | xargs printf %-s)'" # export PS1 ps: for the zealous kind, i know that bash has built-in "\j" for this. -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message