From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-10 09:38:38 PST Xref: gmd.de comp.org.decus:2898 comp.os.vms:42143 comp.sys.dec:14193 comp.unix.advocacy:1040 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!sgi1.fnet.cs.mci.com!mcigate.apdev.cs.mci.com!rmwise From: rmwise@mcigate.apdev.cs.mci.com (Bob_Wise) Subject: Re: Is VMS Dying? Message-ID: Sender: usenet@sgi1.fnet.cs.mci.com Nntp-Posting-Host: mcigate.apdev.cs.mci.com Organization: MCI Telecommunications References: <2l7tl5INN6aj@jhunix.hcf.jhu.edu> Date: Thu, 10 Mar 1994 17:38:38 GMT This program works just fine on my AIX 3.2.5 box, as well, so go suck an egg. Why should wildcarding be repeated in _every_single_command_ instead of once in the shell? -Bob In article rockwell@nova.umd.edu (Raul Deluth Miller) writes: >Douglas W. O'Neal: >. Try the following script on your Unix box under any shell you >. wish. It fails for me under SunOS 4.1.x, SunOS 5.3, Irix 4.0.5, >. and Ultrix 4.3a. I've tried sh, ksh (both vendor supplied and PD), >. and csh. (btw. SunOS 5.x no longer supplies the yes command). >. >. #!/bin/sh >. for I in `yes | cat -n | tr -d y | head -400`; do >. touch file.${I}.a file.${I}.b file.${I}.c file.${I}.d file.${I}.e >. done >. chmod 755 * > >Ok: > >$ ls >foo yes >$ chmod 755 * >$ ./foo >$ cat foo >#!/bin/sh >for I in `yes | cat -n | tr -d y | head -400`; do > touch file.${I}.a file.${I}.b file.${I}.c file.${I}.d file.${I}.e >done >chmod 755 * >$ ls | wc > 2002 2002 21468 >$ uname -a >SunOS nova 5.2 Generic_100999-47 sun4d sparc >$ ps > PID TTY TIME COMD > 14113 pts/22 0:00 ksh > 14969 pts/22 0:00 ps >$ ls -l | head -5 >total 24 >-rwxr-xr-x 1 rockwell travelle 0 Mar 4 13:53 file.1.a >-rwxr-xr-x 1 rockwell travelle 0 Mar 4 13:53 file.1.b >-rwxr-xr-x 1 rockwell travelle 0 Mar 4 13:53 file.1.c >-rwxr-xr-x 1 rockwell travelle 0 Mar 4 13:53 file.1.d >$ > >I'll agree that Sun is bogus for not including the yes command. > >Raul D. Miller > -- ----------------------------------------------------------------------------- | Bob Wise | INET:622-1322 | MCIMail:468-2222 | Pager:719-577-1928 | | Unix Consultant |-------------------------------------------------------| | Consultant to MCI | Phone:719-535-1322 | Internet:rmwise@apdev.cs.mci.com |