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: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-04 10:08:18 PST Xref: gmd.de comp.org.decus:2565 comp.os.vms:41408 comp.sys.dec:13806 comp.unix.advocacy:780 Path: gmd.de!xlink.net!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!wupost!decwrl!pa.dec.com!src.dec.com!crl.dec.com!utne.zk3.dec.com!utne!strange From: strange@zk3.dec.com (Steve Strange) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 04 Mar 1994 18:08:18 GMT Organization: Digital Equipment Corp. Distribution: world Message-ID: References: <2l5v1j$71b@c3po.jvnc.net> <2l7ifnINNd1n@jhunix.hcf.jhu.edu>, <2l7pbn$kk9@gap.cco.caltech.edu> NNTP-Posting-Host: squeeze.zk3.dec.com In-reply-to: carl@SOL1.GPS.CALTECH.EDU's message of 4 Mar 1994 16:58:31 GMT In article <2l7pbn$kk9@gap.cco.caltech.edu> carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes: >=Really? I've never seen `chmod 755 *` fail. Who gave you that >=version of ksh? [I'm presuming that if you compiled it yourself you'd >=reconfigure it and recompile it.] >The point is that the shell technique for expanding wildcards requires that all >instances of the expansion be placed in the argument list. I've yet to see a >shell that didn't have a hard-coded limit to the size of the argument list >(yeah, I know, you don't have to have one; you COULD make a guess as to how >many arguments you're going to generate, malloc space for pointers to them, if >you exceed the estimate, malloc more space, copy the already generated >pointers, and iterate). They way one typically gets around this problem is by piping to xargs, which will automatically divide the monster request into as many issuances of the command as are necessary to avoid arg overflow. Perhaps not pretty, but effective. Steve -- Steve Strange Digital Equipment Corporation, Nashua, NH DCE DFS for DEC OSF/1 -- Development strange@zk3.dec.com