all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joseph Mingrone <jrm@ftfl.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 15414@debbugs.gnu.org
Subject: bug#15414: 24.3; piping problems in eshell
Date: Thu, 19 Sep 2013 12:04:00 -0300	[thread overview]
Message-ID: <868uysam5b.fsf@gly.ath.cx> (raw)
In-Reply-To: <oyd2o5jz3x.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 18 Sep 2013 22:59:14 -0400")

Glenn Morris <rgm@gnu.org> writes:

> Joseph Mingrone wrote:
>
>> 1. emacs -Q
>> 2. M-x eshell
>> 3. cat a_file | wc -l
>>
>> The output of 3. will be wrong for most files longer than something like
>> 40 lines and it will often give different results each time 3. is run.
>
> FWIW, I did not see this in 100 repetitions on a 100 line file, on
> either of two systems. I got the correct answer every time.
>
> I did notice that
>
>   cat does-not-exist | wc -l 
>
> returns 1 though.

Were either of those systems running FreeBSD?

~ $ uname -a
Linux node8 3.5.0-27-generic #46~precise1-Ubuntu SMP Tue Mar 26 19:33:21
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ wc -l q08-02a.qzp
82 q08-02a.qzp
~ $ cat q08-02a.qzp | wc -l
82


$ uname -a
FreeBSD phe 9.1-STABLE FreeBSD 9.1-STABLE #0 r247012: Tue Feb 19 21:45:31 AST 2013     root@phe.ath.cx:/usr/obj/usr/src/sys/PHE  amd64
$ wc -l q08-02a.qzp 
      82 q08-02a.qzp
$ cat q08-02a.qzp | wc -l
      51

If there is anything else I can test, please let me know.

Joseph





  reply	other threads:[~2013-09-19 15:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19  1:47 bug#15414: 24.3; piping problems in eshell Joseph Mingrone
2013-09-19  2:59 ` Glenn Morris
2013-09-19 15:04   ` Joseph Mingrone [this message]
2013-09-19 17:07     ` Glenn Morris
2013-09-21 23:41       ` Joseph Mingrone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=868uysam5b.fsf@gly.ath.cx \
    --to=jrm@ftfl.ca \
    --cc=15414@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.