From MAILER-DAEMON Thu Oct 13 02:43:45 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1REF17-0008QX-8t for mharc-bug-ed@gnu.org; Thu, 13 Oct 2011 02:43:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]:41417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE9UY-0002B6-Af for bug-ed@gnu.org; Wed, 12 Oct 2011 20:49:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE9UX-00031h-21 for bug-ed@gnu.org; Wed, 12 Oct 2011 20:49:46 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:57913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE9UW-00031S-Qk for bug-ed@gnu.org; Wed, 12 Oct 2011 20:49:44 -0400 Received: by pzk4 with SMTP id 4so1387562pzk.6 for ; Wed, 12 Oct 2011 17:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=ZLJn8OEKQ7GrdOu2sOj+Pl6vBjBJa2YMv6KszQSLO4E=; b=KYN+uwBXNsyFkY3XkOCQcj5N/uiLwB41wZBhN0dIjTynJ7LmQDBCcS4hcfoxQjM4t/ +0QtqRnqpZometYihJgQnf7VLs/VIQ4GAY6AC56q32VaM5VX2OO+ANkaRFNmQTMpZszM a2s8M7lPLsdBl/SLraVPHPL6lDpPMdo15RPTk= Received: by 10.68.12.104 with SMTP id x8mr4661239pbb.79.1318466983071; Wed, 12 Oct 2011 17:49:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.174.7 with HTTP; Wed, 12 Oct 2011 17:49:23 -0700 (PDT) From: Richard Hum Date: Wed, 12 Oct 2011 20:49:23 -0400 Message-ID: To: bug-ed@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.47 X-Mailman-Approved-At: Thu, 13 Oct 2011 02:43:43 -0400 Subject: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 00:49:47 -0000 For some reason, the -p flag for ed requires a non-empty arguement. Is this really necessary? I edited carg_parser.c, commented out lines 194-196 and it still works perfectly. I only did this because without the -p flag, ed does not output correctly when using a netcat bind shell. I believe this has something to do with how ed handles output. I don't know exactly why though. -- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.14 (GNU/Linux) mQENBEyZQwwBCAC0LOoLCQHzibwRVbAq0G/61lfwppAYdPpiY27DZjJ1KIdB5vUn UDtYmqJ3jwt0gI+nT8/vsZIyUDsxDqkkFZgy4pJ4M3kB2yyWT8ky0AOI+2lFovF8 C9I7VjQqVf36k1uDpaqqqFU1woYJ9JvaPYwyHrkvr9YnfOwBG6qYa+8whnasZ4yc ODvawtpNMMmy9bUAnwO71Gi6XBIndhL4cqjdtDNpWK5PUlPoXSPc4j0hsizBpF77 SVcGiLPLtXdJfJWBrmpVgczgd7mjYC1e/Kmm7lmqvWHBF40kankr3Xh1VL6pKcgH nqRtU+cuq62/NxY5tD7jvPafY2ECTfMupm93ABEBAAG0LVJpY2hhcmQgSmlhbiBZ aW5nIEh1bSA8aHVtLnJpY2hhcmRAZ21haWwuY29tPokBOAQTAQIAIgUCTJlDDAIb AwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQj1OAC48Gk//9Nwf/UcdSLEkH gBWKSrfMWmLCvLK5FEgqBCTv1tEpbgWBGQO5e1TEUFf8bukrLMdd4j7n6NyPmB4W Z2wJLEF3GnzQYzbOgOxT0sCFsyOSzNL1+SocUkd3doUAMHeZr5/tvfWRc8Voi2SG BTiGCat6rGA2256918jbQuh79XTE6AC1Z66eP5WtfiycnbIYT2GxJeVZyXnY15LX ZiXVu9dFXo5FMFvwGgw5NkT2Q1vUMLwFpO96g+s+qFVWzSSIAmsFuqmhhqKdaNvk K+o1O/jdAryTDuKuiSZEhb3uoM2y49wVUBki8MzBdaMG+HMkS5PqDBfSeVA74n1S MJLJUjGYBxMPZ7kBDQRMmUMMAQgAv51KcBUIOLM9YFokblMskLn20JL+m1zHG+M5 5OZ1uw4ovex+68fwQgT8q1eqpSdcNTWreg/2INF1cm2erspYo171fUiAbKPtpwz0 BPhz8uUPu3BSMuz+jpk1hyN0CwFpSyV8raC6hRPWnZMZ2v+fK5JUqHuWZcCQgPG4 1z2qTVMXUuIuPsphTG5sMiz4maEI9nP3SquVKYk27N/+aKzgjLn7RKbAxLsYiyAe 7ayExqMLknFwt96Au4BNNRvMNmIVjawa94hR0+BerhCFH8GSu5uKHUDp9Kp0+6z2 IiDM4tW+Xzb7QUuVeY4tQMfElioenquZzy73l16gc2fu9WJzdQARAQABiQEfBBgB AgAJBQJMmUMMAhsMAAoJEI9TgAuPBpP/kuwH/1yXF7zvwV8c3uiYZqPZmZ4B63h2 Ck20iA3JB2HoqM0SSMMH/z48pd3HevCQoG/vd8i81DrMC+LZxUPr1pr6UeG4V8GU v0wfPAmhlKeACEAd1yJ70ApXWNlha7Z7lwUHgeU1rH/PY41pvdvfSPk+27LHGjFn 9vpboXJKPZSOVzau5OwpG98kY6oyzBcqh2QUuqy5uzR78uWMFN0zxxDuFm8+Gay3 zDPLQhCT7r9Itss4oBi5EgXM8WjBgkIL9NZod5+vhKb36dFd1PHoyT+qax/dJYwD /+4ygcNDl3CVQnuPppG09Bh+VISruQ/pG/mc/Evr7UqGWf8zQdZwOa1yzjQ= =VOhG -----END PGP PUBLIC KEY BLOCK----- From MAILER-DAEMON Thu Oct 13 10:01:32 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RELqm-0001xa-0U for mharc-bug-ed@gnu.org; Thu, 13 Oct 2011 10:01:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RELqj-0001xR-DJ for bug-ed@gnu.org; Thu, 13 Oct 2011 10:01:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RELqd-0003KH-70 for bug-ed@gnu.org; Thu, 13 Oct 2011 10:01:29 -0400 Received: from out09.wanadoo.es ([62.36.20.209]:44645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RELqd-0003K7-21 for bug-ed@gnu.org; Thu, 13 Oct 2011 10:01:23 -0400 Received: from [217.124.33.71] by out09.wanadoo.es with esmtpa (Exim 4.68) (envelope-from ) id 1RELqY-0000CL-Bc for bug-ed@gnu.org; Thu, 13 Oct 2011 16:01:19 +0200 Message-ID: <4E96F76D.8080504@teleline.es> Date: Thu, 13 Oct 2011 16:36:29 +0200 From: Antonio Diaz Diaz User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bug-ed@gnu.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-login: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.36.20.209 Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 14:01:30 -0000 Hello Richard, Richard Hum wrote: > For some reason, the -p flag for ed requires a non-empty arguement. Is > this really necessary? Of course it isn't really necessary, but it is documented[1][2][3] this way and so I have maintained it this way. [1]http://www.gnu.org/software/ed/manual/ed_manual.html#Invoking-Ed [2]http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html [3]http://linux.die.net/man/1/ed > I edited carg_parser.c, commented out lines > 194-196 and it still works perfectly. You did what? If all you want is to make the argument to -p optional, you should have changed line 148 of main.c to { 'p', "prompt", ap_maybe }, > I only did this because without > the -p flag, ed does not output correctly when using a netcat bind > shell. I believe this has something to do with how ed handles output. > I don't know exactly why though. What do you mean by "ed does not output correctly"? Did you try to toggle the prompt with the 'P' command? Regards, Antonio. From MAILER-DAEMON Thu Oct 13 10:28:13 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1REMGb-0001Gq-0K for mharc-bug-ed@gnu.org; Thu, 13 Oct 2011 10:28:13 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REMGV-0001Gi-Ky for bug-ed@gnu.org; Thu, 13 Oct 2011 10:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REMGR-0001BA-Gu for bug-ed@gnu.org; Thu, 13 Oct 2011 10:28:07 -0400 Received: from earth.ccil.org ([192.190.237.11]:40480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REMGR-00019G-Du for bug-ed@gnu.org; Thu, 13 Oct 2011 10:28:03 -0400 Received: from cowan by earth.ccil.org with local (Exim 4.69) (envelope-from ) id 1REMGJ-0005rf-PR; Thu, 13 Oct 2011 10:27:55 -0400 Date: Thu, 13 Oct 2011 10:27:55 -0400 From: John Cowan To: Antonio Diaz Diaz Message-ID: <20111013142755.GA11718@mercury.ccil.org> References: <4E96F76D.8080504@teleline.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E96F76D.8080504@teleline.es> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: John Cowan X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 192.190.237.11 Cc: bug-ed@gnu.org Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 14:28:11 -0000 Antonio Diaz Diaz scripsit: > Richard Hum wrote: >> For some reason, the -p flag for ed requires a non-empty arguement. Is >> this really necessary? > > Of course it isn't really necessary, but it is documented[1][2][3] this > way and so I have maintained it this way. Your references merely require that -p take an argument: they do not require the argument to be non-empty. So whereas the command $ ed -p fails and should fail, the command $ ed -p '' should not fail, but it does, at least in ed 1.5. -- LEAR: Dost thou call me fool, boy? John Cowan FOOL: All thy other titles http://www.ccil.org/~cowan thou hast given away: cowan@ccil.org That thou wast born with. From MAILER-DAEMON Thu Oct 13 17:57:17 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RETHB-0004Vk-8G for mharc-bug-ed@gnu.org; Thu, 13 Oct 2011 17:57:17 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RETH7-0004Uv-S6 for bug-ed@gnu.org; Thu, 13 Oct 2011 17:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RETH6-0006oW-Eu for bug-ed@gnu.org; Thu, 13 Oct 2011 17:57:13 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:35916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RETH6-0006oS-3A for bug-ed@gnu.org; Thu, 13 Oct 2011 17:57:12 -0400 Received: by ywe9 with SMTP id 9so1986878ywe.0 for ; Thu, 13 Oct 2011 14:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=SJY8dezEYr/7tzBsnskU2P9+JsennQa3bII/z9AWbH8=; b=BehLL56/SE6u8xrlzrXudvIdpFokXGNWat5NUSDaV1+OUj8JccGl1Y/YgrZIDz2EJV x0dhLSQnFUNofbaqrGfOJXSPnIIieJozPd4wAAOUvBE7qKEeRnWJt6LP56bJAyExiK5g GdcWAqqhrCQPB3c6sdIiC/6cS7P612txOQaRI= Received: by 10.68.38.169 with SMTP id h9mr11812458pbk.113.1318543031126; Thu, 13 Oct 2011 14:57:11 -0700 (PDT) MIME-Version: 1.0 Sender: hum.richard@gmail.com Received: by 10.142.174.7 with HTTP; Thu, 13 Oct 2011 14:56:51 -0700 (PDT) In-Reply-To: <4E96F76D.8080504@teleline.es> References: <4E96F76D.8080504@teleline.es> From: Richard Hum Date: Thu, 13 Oct 2011 17:56:51 -0400 X-Google-Sender-Auth: xpweYqDTJZBCuzVqQJOX16p5xbU Message-ID: To: Antonio Diaz Diaz Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 Cc: bug-ed@gnu.org Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 21:57:15 -0000 When using a netcat bind shell, it does not output the p, l, and n commands until ed is exited. Everything else outputs correctly as far as I can see. On Thu, Oct 13, 2011 at 10:36 AM, Antonio Diaz Diaz wrote: > Hello Richard, > > Richard Hum wrote: >> >> For some reason, the -p flag for ed requires a non-empty arguement. Is >> this really necessary? > > Of course it isn't really necessary, but it is documented[1][2][3] this w= ay > and so I have maintained it this way. > > [1]http://www.gnu.org/software/ed/manual/ed_manual.html#Invoking-Ed > [2]http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html > [3]http://linux.die.net/man/1/ed > > >> I edited carg_parser.c, commented out lines >> 194-196 and it still works perfectly. > > You did what? If all you want is to make the argument to -p optional, you > should have changed line 148 of main.c to > =A0 =A0{ 'p', "prompt", =A0 =A0 =A0 =A0 =A0 =A0ap_maybe }, > > >> I only did this because without >> the -p flag, ed does not output correctly when using a netcat bind >> shell. I believe this has something to do with how ed handles output. >> I don't know exactly why though. > > What do you mean by "ed does not output correctly"? > Did you try to toggle the prompt with the 'P' command? > > > Regards, > Antonio. > > > _______________________________________________ > bug-ed mailing list > bug-ed@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-ed > --=20 -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.14 (GNU/Linux) mQENBEyZQwwBCAC0LOoLCQHzibwRVbAq0G/61lfwppAYdPpiY27DZjJ1KIdB5vUn UDtYmqJ3jwt0gI+nT8/vsZIyUDsxDqkkFZgy4pJ4M3kB2yyWT8ky0AOI+2lFovF8 C9I7VjQqVf36k1uDpaqqqFU1woYJ9JvaPYwyHrkvr9YnfOwBG6qYa+8whnasZ4yc ODvawtpNMMmy9bUAnwO71Gi6XBIndhL4cqjdtDNpWK5PUlPoXSPc4j0hsizBpF77 SVcGiLPLtXdJfJWBrmpVgczgd7mjYC1e/Kmm7lmqvWHBF40kankr3Xh1VL6pKcgH nqRtU+cuq62/NxY5tD7jvPafY2ECTfMupm93ABEBAAG0LVJpY2hhcmQgSmlhbiBZ aW5nIEh1bSA8aHVtLnJpY2hhcmRAZ21haWwuY29tPokBOAQTAQIAIgUCTJlDDAIb AwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQj1OAC48Gk//9Nwf/UcdSLEkH gBWKSrfMWmLCvLK5FEgqBCTv1tEpbgWBGQO5e1TEUFf8bukrLMdd4j7n6NyPmB4W Z2wJLEF3GnzQYzbOgOxT0sCFsyOSzNL1+SocUkd3doUAMHeZr5/tvfWRc8Voi2SG BTiGCat6rGA2256918jbQuh79XTE6AC1Z66eP5WtfiycnbIYT2GxJeVZyXnY15LX ZiXVu9dFXo5FMFvwGgw5NkT2Q1vUMLwFpO96g+s+qFVWzSSIAmsFuqmhhqKdaNvk K+o1O/jdAryTDuKuiSZEhb3uoM2y49wVUBki8MzBdaMG+HMkS5PqDBfSeVA74n1S MJLJUjGYBxMPZ7kBDQRMmUMMAQgAv51KcBUIOLM9YFokblMskLn20JL+m1zHG+M5 5OZ1uw4ovex+68fwQgT8q1eqpSdcNTWreg/2INF1cm2erspYo171fUiAbKPtpwz0 BPhz8uUPu3BSMuz+jpk1hyN0CwFpSyV8raC6hRPWnZMZ2v+fK5JUqHuWZcCQgPG4 1z2qTVMXUuIuPsphTG5sMiz4maEI9nP3SquVKYk27N/+aKzgjLn7RKbAxLsYiyAe 7ayExqMLknFwt96Au4BNNRvMNmIVjawa94hR0+BerhCFH8GSu5uKHUDp9Kp0+6z2 IiDM4tW+Xzb7QUuVeY4tQMfElioenquZzy73l16gc2fu9WJzdQARAQABiQEfBBgB AgAJBQJMmUMMAhsMAAoJEI9TgAuPBpP/kuwH/1yXF7zvwV8c3uiYZqPZmZ4B63h2 Ck20iA3JB2HoqM0SSMMH/z48pd3HevCQoG/vd8i81DrMC+LZxUPr1pr6UeG4V8GU v0wfPAmhlKeACEAd1yJ70ApXWNlha7Z7lwUHgeU1rH/PY41pvdvfSPk+27LHGjFn 9vpboXJKPZSOVzau5OwpG98kY6oyzBcqh2QUuqy5uzR78uWMFN0zxxDuFm8+Gay3 zDPLQhCT7r9Itss4oBi5EgXM8WjBgkIL9NZod5+vhKb36dFd1PHoyT+qax/dJYwD /+4ygcNDl3CVQnuPppG09Bh+VISruQ/pG/mc/Evr7UqGWf8zQdZwOa1yzjQ=3D =3DVOhG -----END PGP PUBLIC KEY BLOCK----- From MAILER-DAEMON Fri Oct 14 10:52:06 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1REj7G-0001tI-63 for mharc-bug-ed@gnu.org; Fri, 14 Oct 2011 10:52:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REj79-0001s9-CP for bug-ed@gnu.org; Fri, 14 Oct 2011 10:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REj75-0000vT-IT for bug-ed@gnu.org; Fri, 14 Oct 2011 10:51:59 -0400 Received: from out09.wanadoo.es ([62.36.20.209]:55652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REj75-0000vJ-DY for bug-ed@gnu.org; Fri, 14 Oct 2011 10:51:55 -0400 Received: from [217.124.31.20] by out09.wanadoo.es with esmtpa (Exim 4.68) (envelope-from ) id 1REj71-0005ca-Dq; Fri, 14 Oct 2011 16:51:52 +0200 Message-ID: <4E9854D0.5050007@teleline.es> Date: Fri, 14 Oct 2011 17:27:12 +0200 From: Antonio Diaz Diaz User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Hum References: <4E96F76D.8080504@teleline.es> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-login: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.36.20.209 Cc: bug-ed@gnu.org Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 14:52:04 -0000 Richard Hum wrote: > When using a netcat bind shell, it does not output the p, l, and n > commands until ed is exited. Everything else outputs correctly as far > as I can see. Do you mean if you issue several p commands, all of them are output when ed is exited? Does the P command solve this? I mean, after issuing P, the p l and n commands output correctly? From MAILER-DAEMON Fri Oct 14 10:54:43 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1REj9n-0002Q6-DC for mharc-bug-ed@gnu.org; Fri, 14 Oct 2011 10:54:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REj9m-0002Pz-0c for bug-ed@gnu.org; Fri, 14 Oct 2011 10:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REj9g-0001bz-HO for bug-ed@gnu.org; Fri, 14 Oct 2011 10:54:41 -0400 Received: from out05.wanadoo.es ([62.36.20.205]:40160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REj9g-0001bv-BL for bug-ed@gnu.org; Fri, 14 Oct 2011 10:54:36 -0400 Received: from [217.124.31.20] by out05.wanadoo.es with esmtpa (Exim 4.68) (envelope-from ) id 1REj9e-0004xC-JX for bug-ed@gnu.org; Fri, 14 Oct 2011 16:54:35 +0200 Message-ID: <4E985574.90401@teleline.es> Date: Fri, 14 Oct 2011 17:29:56 +0200 From: Antonio Diaz Diaz User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bug-ed@gnu.org References: <4E96F76D.8080504@teleline.es> <20111013142755.GA11718@mercury.ccil.org> In-Reply-To: <20111013142755.GA11718@mercury.ccil.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-login: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.36.20.205 Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 14:54:42 -0000 John Cowan wrote: > Your references merely require that -p take an argument: they do not > require the argument to be non-empty. AFAIK they do not require an empty argument to be accepted. Ed 0.2, for example, didn't accept an empty argument to -p. From MAILER-DAEMON Fri Oct 14 11:05:45 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1REjKT-0005ZG-5C for mharc-bug-ed@gnu.org; Fri, 14 Oct 2011 11:05:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REjKM-0005Z7-Id for bug-ed@gnu.org; Fri, 14 Oct 2011 11:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REjKI-0004E7-6W for bug-ed@gnu.org; Fri, 14 Oct 2011 11:05:38 -0400 Received: from earth.ccil.org ([192.190.237.11]:50225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REjKI-0004CU-2U for bug-ed@gnu.org; Fri, 14 Oct 2011 11:05:34 -0400 Received: from cowan by earth.ccil.org with local (Exim 4.69) (envelope-from ) id 1REjK9-0004fw-A6; Fri, 14 Oct 2011 11:05:25 -0400 Date: Fri, 14 Oct 2011 11:05:25 -0400 From: John Cowan To: Antonio Diaz Diaz Message-ID: <20111014150525.GB11421@mercury.ccil.org> References: <4E96F76D.8080504@teleline.es> <20111013142755.GA11718@mercury.ccil.org> <4E985574.90401@teleline.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E985574.90401@teleline.es> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: John Cowan X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 192.190.237.11 Cc: bug-ed@gnu.org Subject: Re: [Bug-ed] ed -p flag X-BeenThere: bug-ed@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "GNU ed bug reports, suggestions, general discussion." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 15:05:44 -0000 Antonio Diaz Diaz scripsit: > John Cowan wrote: >> Your references merely require that -p take an argument: they do not >> require the argument to be non-empty. > > AFAIK they do not require an empty argument to be accepted. Ed 0.2, for > example, didn't accept an empty argument to -p. To say that Posix doesn't forbid an implementation to print an error when started with "ed -p ''" is meaningless. Posix doesn't forbid an implementation to print an error when started with "ed -p '*'", either, but an implementation that rejected that would clearly be erroneous. Implementations should accept any string as an argument to -p, including the empty string. The problems with netcat probably reflect either or both of: 1) A failure to fflush() appropriately 2) Using both standard output and standard error -- John Cowan http://www.ccil.org/~cowan cowan@ccil.org To say that Bilbo's breath was taken away is no description at all. There are no words left to express his staggerment, since Men changed the language that they learned of elves in the days when all the world was wonderful. --The Hobbit