Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!sco!evanh From: evanh@sco.COM (Evan A.C. Hunt) Newsgroups: news.software.b Subject: Re: How many writes can sed do? (rn newsetup problem) Message-ID: <1995@scorn.sco.COM> Date: 2 Feb 90 02:28:05 GMT References: <1990Jan31.224431.20355@smsc.sony.com> Sender: news@sco.COM Reply-To: evanh@sco.COM (Evan A.C. Hunt) Organization: The Santa Cruz Operation, Inc. Lines: 37 dce@smsc.Sony.COM (David Elliott) writes: >The file newsetup contains a number of sed scripts, each of which limit >the number of files referenced in 'w' commands to 10. It turns out >that on the Sony NEWS OS, sed can only use 9 different 'w' files. >Is the number 10 common for most BSD systems, or is newsetup expecting >too much in this case? SCO XENIX has the same limitation. As I understand the problem, sed can have 10 output files, but some implementations count stdout as one of them. Here's what I did to my copy to get it to work. (This is for patchlevel 40.) -- cut here -- Index: newsetup.SH 6a7 > 18d18 < # 19a20,22 > # M001 > # Under SCO XENIX, sed will only take 9 wfiles, not 10 > 45c48 < : NOTE: SED WILL NOT TAKE MORE THAN 10 WFILES, SO BEWARE --- > : NOTE: SED WILL NOT TAKE MORE THAN 9 WFILES, SO BEWARE (M001) 121,124d123 < -e ' d' \\ < -e '}' \\ < -e "/^talk\./{" \\ < -e " w /tmp/n.talk\$\$" \\ -- Evan A.C. Hunt evanh@sco.COM The Santa Cruz Operation, Inc. uunet!sco!evanh (408) 425-7222 evanh%sco.COM@ucscc.ucsc.EDU