From owner-freebsd-bugs Thu May 29 17:33:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA18133 for bugs-outgoing; Thu, 29 May 1997 17:33:12 -0700 (PDT) Received: from g30.synet.net (G30.SYNET.NET [168.113.1.64]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA18124 for ; Thu, 29 May 1997 17:33:06 -0700 (PDT) Received: from DIAL48.SYNET.NET (DIAL48.SYNET.NET [168.113.1.52]) by g30.synet.net (8.8.5/8.8.3) with SMTP id TAA59926 for ; Thu, 29 May 1997 19:34:55 -0500 Message-Id: <199705300034.TAA59926@g30.synet.net> X-Sender: jthom@synet.net X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 29 May 1997 19:32:57 -0500 To: freebsd-bugs@FreeBSD.ORG From: JD Thomlinson Subject: psif minor bug & fix Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi all - This is a *very* minor bug, but since I'm a 'nix newbie it cost me several hours of troubleshooting. In the file: /usr/local/libexec/psif (the *basic* ps filter). The first statement "read first_line" uses word splitting with the default ISF. The subsequent "echo First_line" echos the split line with spaces substituted for spaces and tabs. The first line therefore prints incorrectly with a single space substituted for multiple spaces or tabs. Putting IFS="" (null) before the read turns off the splitting. Apparently when the script finishes, the IFS variable goes out of scope and returns to the default IFS of the invoking shell. It looks like it's fixed, but is it? Did I do good? Huh? Huh? Brother is there a lot to learn! A 49 year old learning UNIX, JohnT ;-) PS: Is anyone working on porting MOSIX to FreeBSD? ----- "Improvement succeeded each other so rapidly, that machines which had never been finished were abandoned in the hands of their makers, because new improvements had superceded their utility." Charles Babbage 'On the Economy of Manufactures' 1832