HDTenEightyP/NetNews huggingface dataset:
From: eliot@dcs.qmw.ac.uk (Eliot Miranda;W211)
Newsgroups: comp.unix.aux
Subject: Interval timers under A/UX 2.0 & 3.0
Keywords: setitimer, SIGPROF, SIGVTALRM
Date: 12 Oct 92 17:34:12 GMT
Organization: Computer Science Dept, QMW, University of London

The ITIMER_PROF & ITIMER_VIRTUAL interval timers (see setitimer (2)) don't
appear to work under either A/UX 2.0 or A/UX 3.0.  Is this the case?
The manual pages say nothing about the disfunction.

Here is a simple program that should produce a stream of dot line feeds but
doesn't:


#include <sys/time.h>
#include <signal.h>

#if defined(PROF)
#   define TIMER ITIMER_PROF
#   define SIGNAL SIGPROF
#else
#if defined(ALARM)
#   define TIMER ITIMER_REAL
#   define SIGNAL SIGALRM
#else
#   define TIMER ITIMER_VIRTUAL
#   define SIGNAL SIGVTALRM
#endif
#endif
int hit = 0;

void	catchit(){hit = 1;}

main(){
	struct	itimerval	repeattime;

	set42sig();
	signal(SIGNAL,catchit);

#   define KEY_REPEAT_DELAY_MILLISECONDS 400
#   define KEY_REPEAT_MILLISECONDS 200
	repeattime.it_value.tv_sec = KEY_REPEAT_DELAY_MILLISECONDS/1000;
	repeattime.it_value.tv_usec = (KEY_REPEAT_DELAY_MILLISECONDS%1000)*1000;
	repeattime.it_interval.tv_sec = KEY_REPEAT_MILLISECONDS/1000;
	repeattime.it_interval.tv_usec = (KEY_REPEAT_MILLISECONDS%1000)*1000;
	if (setitimer(TIMER,&repeattime,0) < 0)
		perror("setitimer");


	while(1) {
		pause();
		if (hit) {hit = 0; printf(".\n");}
	}
}

--
Eliot Miranda,  Lecturer	email:	eliot@dcs.qmw.ac.uk
Department of Computer Science	ARPA:	eliot%dcs.qmw.ac.uk@nsf.ac.uk
Queen Mary Westfield College	UUCP:	eliot@qmw-dcs.uucp
Mile End Road, LONDON E1 4NS	Tel:	071 975 5229 (+44 71 975 5229)
				Fax:	081 980 6533 (+44 81 980 6533)
Newsgroups: comp.unix.aux
From: barrey@Novell.com (Barrey Jewall)
Subject: Re: Which is atop of which: A/UX or Sys VII
Organization: Novell, Inc.
Distribution: usa
Date: Wed, 14 Oct 1992 00:50:55 GMT

In <81632@ut-emx.uucp> ifbb657@ccwf.cc.utexas.edu (Douglas Floyd) writes:

>Does A/UX run atop of System 7, like an app or At Ease, or does
>A/UX run beneath System 7, between the hardware and the Mac OS, running
>system 7 as a process or processes.  There is a friend of mine who SWEARS that
>A/UX runs atop of Sys 7 like Win runs atop of MS-DOS.

A/UX runs Unix on the Macintosh. Things like the Mac OS (System 7) 
and the X Window System run on top of A/UX. They are processes.

>PS:  I apologize for using A/UX and DOS in the same sentence :-)

Fortunately, A/UX runs much better than Win@$#*&!!

If A/UX ran like Win@%#$ runs on top of DOS, then I doubt that
even its current small but loyal audience would use it...

Bah


--
+ Barrey Jewall - Network  Admin.++  and yea, though I walk through the shadow 
+ barrey@novell.com	         ++ of death, I shall fear no evil, for I am
+ Novell, Inc.- San Jose, Calif. ++ the meanest sonofabitch in the valley...
From: ULMO031%FRORS12.BitNet@pucc.PRINCETON.EDU (Raynaud)
Newsgroups: comp.unix.aux
Subject: Video cards for A/UX (survey)
Date: 11 Oct 1992 04:46:21 -0500
Organization: UTexas Mail-to-News Gateway
NNTP-Posting-Host: cs.utexas.edu


As I see lots of requests on the subject of finding a video card that is
A/UX compatible, I would like to ask all the users of A/UX to tell their
configuration and the problems they have with it.

So, could you please mail to me (ULMO031@FRORS12, or AppleLink: RAYNAUD)
this questionnaire :

Name of the video card : (name)
Size of the screen : (13"/.../21")
Computer : (Quadra, IIfx...)
Does A/UX work with it : (Y/N)
Are there any problems with XmacII : (Y/N)
Is it possible to change depth during A/UX-MacOS session : (Y/N)
Does QuickTime work with it : (Y/N)
Possible depths with A/UX-MacOS : (1/4/8/16/24)
Possible depths with A/UX-XWindow : (1/4/8/16/24)
Does the extra functions (hard zoom,pivot...) work under A/UX : (Y/N)

I would like to get enough answers so that I can post a list of many
compatible cards. I hope it will help.

Thanks for your help.

+ Alain Raynaud               ! E-Mail:    ULMO031@FRORS12.BITNET      +
! Force de Guerre des Mines   ! AppleLink: RAYNAUD                     !
! 29240 BREST NAVAL           !                                        !
+ FRANCE                      ! psmac1 : (1) 60 10 40 08 (v22bis)      +
From: paul@hal.COM (Paul Sander)
Newsgroups: comp.unix.aux
Subject: Re: HELP:  Need 3.0 Hard drive recommendation
Date: 14 Oct 92 01:35:00 GMT
Organization: HaL Computer Systems, Inc.
NNTP-Posting-Host: parlo.hal.com

In article <1992Oct13.191538.29380@col.hp.com> chrism@col.hp.com (Chris
Magnuson) writes:
>
>  I've decided that Apple is not responsive enough to the trouble I'm having
>with the drive I've got now, and am considering getting another drive.
>
>  I need 210Meg minimum, but would like 330Meg.  Rock bottom price and AUX 3.0
>compatibility are the main concerns.         
>
>  I have noticed the Maxtor 7213 at $459 in computer shopper.  Has anyone
>got this one going with AUX 3.0?
>
>  If you have a recommendation for a drive, send me some e-mail with the
>drive model, price paid and where from (and let me know if you have seen
>any trouble with it under AUX 3.0).

I would not recommend any Maxtor drive.  I would actively avoid it, if at
all possible.  My experience, and that of everyone else I know has been that
any drive made by Maxtor should be considered unreliable.  I personally have
had two drives fail when they were less than six months old.  (These were
different models, and different production dates.)  Sysadmin types I know
were once grousing about the lousy drives they had, and wanted to literally
take them to a firing range for therapudic reasons.  All of the failed drives
were Maxtors; not one was from one of the several other vendors that they
were using.  I know MIS managers that won't touch them for anything.

Maxtor's drives are cheap, but you get what you pay for.  Bad news.  Bad.
-- 
Paul M. Sander  (408) 379-7000  |  "Life just wouldn't be interesting if
HaL Computer Systems, Inc.      |  everything went the way it was supposed to."
1315 Dell Avenue                |
Campbell, CA  95008  USA        |
From: dswartz@redondo.sw.stratus.com (Dan Swartzendruber)
Newsgroups: comp.unix.aux
Subject: Strange finder problem
Date: 9 Oct 92 22:05:15 GMT
Organization: Stratus Computer, Software Engineering


Here's a weird one which seems to happen occasionally.  I create a file
under unix.  When I use the finder to click on the icon for the folder
containing that file, the file's icon doesn't appear.  The finder search
command (command-f) doesn't seem to locate it either.  What gives?

p.s. The latest instance was when I ftp'ed over the APS powertools archive
from jagubox.  After I did the fcnvt -i hex INFILE OUTFILE and moved the
OUTFILE to /tmp, clicking on /tmp didn't find it.  Not only that, copying
the file and/or moving it to other places with other names gives no joy
either.

p.p.s. I am using FMbackup, if that's any help.
-- 

Dan S.
Newsgroups: comp.unix.aux
From: erikm@microsoft.com (Erik Madsen)
Subject: Need help killing processes
Date: 12 Oct 92 17:38:39 GMT
Organization: Microsoft Corporation

My Scenario: I run an Ingres database on my A/UX machine in conjunction
with DAL Server software (so we can use DAL on the client Mac for Data
Access stuff).

The problem: Many times a connection to the server (over DAL) will not
close due to a crash or a bad logout procedure.  Apparently the maximum
number of open connections become filled, and people cannot log in 
anymore.  To fix this so far, I've just been restarting the database.
Is there a better way?  Is there some way to have a running process look
at other processes and with the appropriate criteria kill them?

I've included a sample of what the open processes look like below:


 UID     PID  PPID  C    STIME TTY      TIME   COMMAND
 dalsys  445  370 0 Oct 6 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  446  445 0 Oct 6 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  447  446 0 Oct 6 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  448  447 0 Oct 6 ?  0:00 /usr/dal/dal.dbms/server TCPIP dalsys
 dalsys  823  370 0 Oct 9 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  824  823 0 Oct 9 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  825  824 0 Oct 9 ?  0:00 sh -c dalsvr dbms server TCPIP dalsys
 dalsys  826  825 0 Oct 9 ?  0:07 /usr/dal/dal.dbms/server TCPIP dalsys

Is there some way to look at these "dalsys" processes by date and have
them terminated if they've been open more than a day?

Any help is appreciated!
Thanks

Erik

Newsgroups: comp.unix.aux
From: monk@DSG.Tandem.COM (Alfredo Moncayo)
Subject: Re: CommandShell under V3
Reply-To: monk@monk.ctg.tandem.com
Organization: Tandem Computers, Inc.
Date: Wed, 7 Oct 1992 22:56:24 GMT

|> Also, on my home machine, I'm thinking of changing my video board from the
|> old Apple 8 bit color board to a RasterOps 8XL we have as a spare here.
|> Does anyone have experiance with it? Will it even work with A/UX?
|> 
I use a RasterOps 8XLi with a 16" monitor and haven't had any problems
running A/UX.  I didn't notice any changes is CommandShell performance between
A/UX 2 and A/UX 3.

- Alfredo
--
Newsgroups: comp.unix.aux
From: bskendig@netcom.com (Brian Kendig)
Subject: Re: A/UX 3.x and (non) Performa 600 CD
Organization: Starfleet Headquarters: San Francisco
Date: Sat, 17 Oct 1992 03:16:49 GMT

halpin@vsg1.dsg.dec.com (Stephen E. Halpin) writes:
>>                                               Given that it doesnt have
>>half the integer performance of a IIci (according to the MacWorld review)
>>I cant image it being anything less than painful under A/UX.
>
>My appologies.  I misread the tables, and the integer performance of the
>Performa 600 is more than half that of the IIci.  Its still seems far
>slower than it should be.  -Steve

How can the P600 be slower than the IIci?  Even though the IIci
usually has a cache card, it's still running at 25MHz, whereas the
P600 runs at 32MHz.

-- 
_/_/_/  Brian Kendig                             Je ne suis fait comme aucun
 _/_/  bskendig@netcom.com                de ceux que j'ai vus; j'ose croire
  _/                            n'etre fait comme aucun de ceux qui existent.
        "Sex is DEATH!"      Si je ne vaux pas mieux, au moins je suis autre.
         -- Barbara Bush                                         -- Rousseau
Newsgroups: comp.unix.aux
From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Subject: More on 'tc'
Summary: latest info concerning 'tc'
Keywords: tc tape device driver
Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Organization: NASA/Goddard Space Flight Center
Date: Fri, 16 Oct 1992 11:42:06 GMT

I'm almost done the latest Beta version of 'tc' (version 2.00b2).
This version adds some nicer features such as:

	o Addition of ERASE, for WangTEK 5525 (and possible others)
	o 'tc' will now attempt a READ CAPACITY to determine the
	  maximum capacity of the drive and the physical block size
	  (a _bunch_ of drives don't support this, however... *sigh*)
	o 'tc' will now attempt a REQUEST BLOCK ADDRESS to determine
	  the "real" block number on the tape. This is then adjusted
	  to "update" the logical block number (using 8k blocks).
	o When spacing by files (or whenever 'tc' loses track of the
	  current logical block number) and REQ BLOCK ADDRESS fails,
	  'mt' will report the logical block number as "unknown + ...".
	  This is due to the fact that spacing by files (on most tape
	  drives) is a SCSI SPACE request. That is, you don't space
	  by blocks (and are thus able to keep track of the blk number).
	  This routine is called whenever the tape is opened, positioned
	  or status-queried. It's not called as the tape is being written
	  or read since there's really no need.
	o HP DAT drives are reported as such by 'mt'
	o "Generic" tape drives are reported as such.
	o "Generic" tape drives look more like DAT/8mm tape drives
	  than Teacs to 'tc'
	o At the _real_ end of tape, ENOSPC is returned instead of
	  ENXIO during writes (this makes more sense).
	o Possible support of CIPHER drives.

To get around the READ CAPACITY problem, I'm looking into the READ BLOCK
LIMITS command, but have little info about it... Anyone have an EOM manual
for a WangDAT or HP or Python or WangTEK? I'd like to look at a few pages
of it... E-mail me if you can help. In particular, the most important
data is the actual physical block size and a list of supported SCSI
commands (and calling/return procedures for some specific ones).

Expect this beast to be available at the start of the week, assuming that
my lately-flaky NewsServer is working :)
-- 
    Jim Jagielski               | "It is not I who am crazy...
    jim@jagubox.gsfc.nasa.gov   |  it is I who am MAD!"
    NASA/GSFC, Code 734.4       |
    Greenbelt, MD 20771         |            - Ren
From: pharos@oar.net (Paul A. Panzl)
Newsgroups: comp.unix.aux
Subject: cu script problem
Date: 15 Oct 92 13:47:07 GMT
Organization: Ohio Academic Resources Network

I am trying to get a script to launch cu, issue the slattconf and route add 
commands.  I keep running into problems because cu will not return control back
to the Systems file after executing the script in the Dialers file. I can get 
this to work just fine with uucico.  Any suggestions would be appreciated.


Paul Panzl
panzl@pharos-tech.com
Newsgroups: comp.unix.shell
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Losing variable outside a while loop
Organization: Bob Stockler
Date: Wed, 14 Oct 1992 05:03:35 GMT

nevin@apple.com (Nevin ":-]" Liber) writes:

>This is always more efficient, since the "cat" command doesn't need to be
>executed, and the right side of the pipe does not need to be executed in a
>subshell.  In the above example, this also has the benefit of preserving
>any shell variables set within the while loop.

True that input redirection is more efficient than executing "cat" into a
pipeline, but false that it changes the behavior of the Bourne shell with
regards to executing a loop with its input or output redirected in other
than a subshell.
From: dwwx@cbnewsk.ATT.COM (david.w.wood)
Newsgroups: comp.unix.shell
Subject: Re: How to use OFS in awk
Date: 15 Oct 92 04:11:52 GMT
Article-I.D.: cbnewsk.DWWX.92Oct14231152
Organization: AT&T Bell Laboratories


Nancy,
Your actions for setting OFS will work, but you MUST seperate the
arguments to print with commas, as so
	{ print $1, $2, $3 }

The following will NOT have Output Field Seperator characters
	{ print $1 $2 $3 }

So don't forget th commas!

David Wood
AT&T Bell Labs
Newsgroups: comp.unix.shell
From: pdel@ADS.COM (Peter Delevoryas)
Subject: Any expect experts out there?
Organization: Advanced Decision Systems, Mtn. View, CA (415)960-7300
Distribution: usa
Date: Wed, 7 Oct 1992 20:54:15 GMT


..or even novices ( which obviously I'm not, can't even get the
simplest script to work: )


The expect script:

::::::::::::::
hello.exp
::::::::::::::
#!expect -f

spawn hello_sh

expect "enter name:"

send "Fred\r"


The shell script:

::::::::::::::
hello_sh
::::::::::::::
#!/bin/sh
echo -n "enter name:"
read name
echo $name > hello.out


The command:

deimos(1295)-> hello.exp
spawn hello_sh
enter name:deimos(1296)->


Maybe it's working right, and I'm 'expecting' the wrong thing :)
I would think it would echo the contents of name to screen, and
create a file called hello.out containing the variable contents.
Instead it just echos 'enter name:' to screen, and doesn't seem
to be sending 'Fred\r' to the program.

Ideas?

PD

--

 login name:   L1-A                      
 In real life: Peter Delevoryas
 In any other life: a cheap imitation
From: digdon@ug.cs.dal.ca (Mike Digdon)
Newsgroups: comp.unix.shell
Subject: Re: How to calculate the Date of Easter?
Date: 8 Oct 92 19:31:38 GMT
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada

In article <1992Oct8.154757.21053@panix.com> fnord@panix.com (Cliff Heller) writes:
>In <10801@hq.hq.af.mil> snolan@postmaster@hq.af.mil (Scott D Nolan) writes:
>
>>Weird question:
>
>>	How do I calculate the exact date for Easter in any
>>given year using normal unix tools (awk, ksh, sed, perl, etc)?
>
>>	Many thanks in advance.
>
>I believe Easter is defined as the first Sunday after the first full moon
>after the first day of spring.  The first day of spring is fixed, but you
>have to have a phases of the moon database/program running as well, then it
>should be a fairly trivial matter to write the program.
>
Are you sure that spring is fixed? I always thought that it could fall on
either the 21st OR the 22nd.. regardless, your calculation of Easter is
correct..
-- 
	     Mike Digdon - Vice Prez DSCSS - Dalhousie University
		     digdon@ug.cs.dal.ca  -- Halifax, NS
		 - Real programmers never work nine to five -
From: fmd3201@marst2 (Larry Baca VSW x9391)
Newsgroups: comp.unix.shell
Subject: Who's Calling Me?
Date: 7 Oct 92 18:01:45 GMT
Organization: Defense Automatic Addressing Systems Office, Tracy Ca. 95376-5057

Problem: Using csh.
         I have one shell script which calls a second shell script and I
	 don't want the second shell script to be executed by itself.

How can one shell script determine if it is being called from the shell
or by another shell script?
-- 
<*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*>
LARRY BACA,           DDN MAIL - lbaca@marst2       UUCP MAIL - marst2!lbaca 
DAASO-VSW AIS, DEFENSE AUTOMATIC ADDRESSING OFFICE, WESTERN DIVISION
DDRW TRACY, TRACY CA. 95376-5057  AUTOVON 462-9391/9488 COMERCIAL 832-9391/9488
Newsgroups: comp.unix.shell
From: peter@merlin.acadiau.ca (Peter Steele)
Subject: Does bash support arrays?
Organization: Acadia University
Date: Wed, 7 Oct 1992 12:01:13 GMT

One of my biggest complaints with Bourne Shell is its lack of
support for arrays compared to csh. Does ksh or bash have array
support?
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
From: jrichter@sinix.UUCP (Juergen Richter)
Newsgroups: comp.unix.shell
Subject: Re: ksh beginner needs help
Date: 7 Oct 92 13:52:35 GMT
Organization: SNI AG Muenchen, STO XS

Answer to Saul Pliuskonis' question:
  set +o viraw
  set -o vi
Newsgroups: comp.unix.shell
From: root@trebor.uucp (Bob Stockler)
Subject: Re: &| under the KornShell
Organization: Bob Stockler
Date: Wed, 14 Oct 1992 23:18:57 GMT

RAHLFS@BEATE.RZ.FH-ULM.DE (RZ D. Rahlfs) writes:

>I would like to have a simple, reasonable example for the usage of &|
>in the KornShell. And a short description of what's going on.

OK.  It opens a two-way pipe between the currrent process and that process
attached to the "&|".  Using "print -p" you can write one line to the
co-process, and using "read -p" you can read one line from it.  Here is a
short example script:

:
# @(#) 'demo' - demonstrate '&|' in the KornShell
[ ~root = / ] || exec ksh $0	# assure it's run by the KornShell
print "Convert Decimal Numbers to Hexadecimal"
typeset -L1u ans	# make it easier to test for the user input
bc |&			# initiate a co-process using 'bc'
print -p "ibase=10 ; obase=16"	# set the input & output bases in 'bc'
while :
do
        print -n "\nEnter a decimal number: "	# prompt for input
        read					# read user input
        print -p $REPLY				# send it to 'bc'
        read -p					# read output of 'bc'
        print "The number is $REPLY hex."	# display it
        print -n "\nPress [RETURN] to Continue, or 'q' to Quit: "
        read ans
        [[ "$ans" = Q ]] && break
done
exit 0
# EOF - 'demo'

Newsgroups: comp.unix.shell
From: wtho@ciba-geigy.ch (Tom Hofmann)
Subject: Re: How to calculate the Date of Easter?
Organization: Ciba-Geigy Ltd., Basel, Switzerland
Date: Fri, 9 Oct 1992 15:41:56 GMT

>>I believe Easter is defined as the first Sunday after the first full moon
>>after the first day of spring.  The first day of spring is fixed, but you
>>have to have a phases of the moon database/program running as well, then it
>>should be a fairly trivial matter to write the program.
>>
>Are you sure that spring is fixed? I always thought that it could fall on
>either the 21st OR the 22nd.. regardless, your calculation of Easter is
>correct..

For the calculation of easter the vernal equinox is fixed
on March 21 (and some more simplifications apply).

---Tom		wtho@ciba-geigy.ch
Newsgroups: comp.unix.shell
Subject: Re: Zsh users and prompting
From: daniel@sdl.mdcbbs.com (Daniel Dignam)
Date: 7 Oct 92 02:28:53 PDT
X-Newsreader: Tin 1.1 PL4

tom@dynamo.ecn.purdue.edu (Tom McCain) writes:
: 
: Has anyone tried to echo a blank line between their prompt?  There
: does not seem to be a escape sequence to echo a newline for prompting.
: Essentially what I want is a blank line to appear between prompts to
: act as a "highlight".  Anyone tried this?  It's simple in bash but not
: so simple in zsh....

I ended up with :-

PS1="`echo \"\n\"`%B%M !>%b "


Not so simple I agree :-), but I do prefer zsh.

--

Daniel Dignam  (daniel@sdl.mdcbbs.com)

    Shape Data, a division of EDS Ltd.

Newsgroups: comp.unix.shell
From: trw@unixland.natick.ma.us (Tim Weil)
Subject: Expect & TCL - HPUX port?
Organization: Unixland Public Access Unix  (508) 655-3848
X-Newsreader: Tin 1.1 PL3
Date: Thu, 15 Oct 1992 23:49:00 GMT
From: jrichter@sinix.UUCP (Juergen Richter)
Newsgroups: comp.unix.shell
Subject: Re: Who's Calling Me?
Date: 13 Oct 92 13:30:15 GMT
Organization: SNI AG Muenchen, STO XS

Possibly an answer to Larry Baca's question:
If you want your script "tt" only be called from script "xx" and "xx" starts
with "#!/bin/csh", you can do the following in "tt":
	#!/bin/csh
	set PPID=`ps -l | awk '$4=='$$'{print $5}'`
	set PCOM=`ps | awk '$1=='$PPID' {print $4}'`
	test $PCOM != xx && exit 1
From: jrichter@sinix.UUCP (Juergen Richter)
Newsgroups: comp.unix.shell
Subject: Re: Problem with background kill.
Date: 12 Oct 92 09:46:08 GMT
Organization: SNI AG Muenchen, STO XS

Answer to one of Narendra Ravi's questions:
To suppress the kill-output try 
  ( dosdir ... )
instead of
  dosdir
.
Newsgroups: comp.unix.shell
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Losing variable outside a while loop
Organization: Bob Stockler
Date: Wed, 14 Oct 1992 04:58:31 GMT

tucker@bedford.progress.COM (Kyle Tucker) writes:

>Much to my amazement, it appears that variables set within a while loop,
>at least mine, are lost once outside this loop. Is this true, is this correct?
>I am running SUN/OS 4.1 /bin/sh and the following script is my headache.

In the Bourne shell, a "for", "while" or "until" construction with its
input/output redirected is executed in a (psuedo) subshell, and therefore
qualities changed within it will not be available to the parent shell.

(This is also true of a list enclosed within "{ .... ;}", where your docs
might lead you to believe otherwise, so don't waste time trying to pipe
a stream of data into a "while" loop by so enclosing it.)

You might investigate the "exec" built-in command to change the standard
input/output of a shell to another file descriptor, or change your work
to the KornShell where this is not a problem.

Newsgroups: comp.unix.shell
From: nh@cbnewsg.cb.att.com (nicholas.hounsome)
Subject: Re: Alias in CSH and KSH
Organization: AT&T
Date: Fri, 9 Oct 1992 08:07:17 GMT

From article <s913300.718528128@rubicon>, by s913300@rubicon (Nga Tran):
> 
> 	I would appreciate if someone can show me how to convert my alias
> 	from csh to ksh:
> 
> 		i.e: 	from csh:
> 
> 				alias grap 'grep -i \!* /etc/passwd'
> 
> 		  	to ksh
> 
> 				alias ....
> 
> 	Thanx advance.

It cannot be done - ksh has no equivalent of \!*.
Use a function instead.
Alternatively bash or zsh can probably do it.