From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.bugs Subject: bug#15414: 24.3; piping problems in eshell Date: Sat, 21 Sep 2013 20:41:58 -0300 Message-ID: <86d2o1g2t5.fsf@gly.ath.cx> References: <86hadha8gs.fsf@gly.ath.cx> <868uysam5b.fsf@gly.ath.cx> <6hzjr891ve.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379810827 23830 80.91.229.3 (22 Sep 2013 00:47:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Sep 2013 00:47:07 +0000 (UTC) Bcc: rgm@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 22 02:47:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VNXpO-0001pA-DB for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2013 02:47:10 +0200 Original-Received: from localhost ([::1]:33530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNXpN-0003ZU-P9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Sep 2013 20:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNXpI-0003Yl-Jh for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 20:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNXpH-0006zb-3i for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 20:47:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNXpG-0006zV-TM for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 20:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VNXpG-00084H-K6 for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2013 20:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Mingrone Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2013 00:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15414 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15414-submit@debbugs.gnu.org id=B15414.137981076930952 (code B ref 15414); Sun, 22 Sep 2013 00:47:02 +0000 Original-Received: (at 15414) by debbugs.gnu.org; 22 Sep 2013 00:46:09 +0000 Original-Received: from localhost ([127.0.0.1]:54494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNXoO-000839-Nh for submit@debbugs.gnu.org; Sat, 21 Sep 2013 20:46:09 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:59253 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VNXoM-000831-GP for 15414@debbugs.gnu.org; Sat, 21 Sep 2013 20:46:07 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VNXoL-0000tf-P3 for 15414@debbugs.gnu.org; Sat, 21 Sep 2013 20:46:06 -0400 Resent-Message-ID: <21054.15821.653860.903352@gnu.org> Resent-Date: Sat, 21 Sep 2013 20:46:05 -0400 Resent-From: Glenn Morris Resent-To: 15414@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=81ml6DOtsvGK9mjUw+64lw1uQAIW1fAWNazJnk2Lcpg=; b=RKJl13Idek2ewZTQpUc++vHq6RS7Icjzsw0hiLnTmGi6A+dJxSbh9ZhyLUBo6D6Xv+ M9Y6tjDJj/CocP2PE8E/oXvmaHI2FotpGDy/nF1up0KmA+iasEUDSAabNH+M+SlYHxeF P4SSoXLl/nIkc9To7hrwq6STqRhdh3GZ3Yjy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=81ml6DOtsvGK9mjUw+64lw1uQAIW1fAWNazJnk2Lcpg=; b=YQ9gJ9CTGaFDCX91w7fv5zMqr9dI8621ZIEfBJsbGOITWjgEZfM+2fGZMb9U48pO/o E1uXZumu3VmtPzSaM33fq5Goia1FY2Pa/I6iyXO333KON+NrJvRZ3OubqFDwZ1IVZyoA aiglvrzN5gbAWAlna0Y1ynlGSeq3xNYfb1RCRND2+UVzuV1eDGeD+awFetnuAcm9dW97 Pos2UA7e0dOpV5m34RxHbb0dKzR8ddAftuPiEOHinpK9w5yA/+90iIQ2qAnDh0uLMeJz RvetJxfyFU9Gk6x2nrmEpi3cv/A5JgZ+q95Epu2RbzJHnbb1plb1Ad2Y6g84MaF7kAGi IQDg== X-Gm-Message-State: ALoCoQkUlAddReBFR5GgTUjPNZhvY7e6Jo45reEpFqDQfOEQ3IAayHF5fR8JKMO0BZOud38FrA+i X-Received: by 10.224.127.6 with SMTP id e6mr14240822qas.67.1379806919320; Sat, 21 Sep 2013 16:41:59 -0700 (PDT) In-Reply-To: <6hzjr891ve.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 19 Sep 2013 13:07:17 -0400") X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Bogosity: no, spamicity=0.037086, v1.2.1 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78665 Archived-At: Glenn Morris writes: > Maybe pipe cat to cat -v -n, and see what goes missing / gets added? % cat test.in | cat -v > test.out % diff test.in test.out The diff shows that test.out gets truncated after 1984 characters (that's what wc -m test.out reports). The contents of test.in, test.out and the diff follow. Joseph ---------------------- test.in ---------------------- // Stat2080 Assignment 8 Winter 2012/2013 // Question 2a /LET itX = mathBeg_m+"X"+mathEnd_m /LET itY = mathBeg_m+"Y"+mathEnd_m /LET itSSxx = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"xx"+subEnd_m /LET itSSyy = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"yy"+subEnd_m /LET itSSxy = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"xy"+subEnd_m /LET itH0 = mathBeg_m+"H"+mathEnd_m+subBeg_m+"0"+subEnd_m /LET itHa = mathBeg_m+"H"+mathEnd_m+subBeg_m+"a"+subEnd_m /LET itF = mathBeg_m+"F"+mathEnd_m /LET n = 10 /LET xm = 5. /LET ym = 12. /LET SSxy = 121.+random(1,8) /LET SSxx = 136.+random(1,8) /LET SSyy = 155. /LET b1 = SSxy/SSxx // beta1_hat /LET b0 = ym-b1*xm // bet0_hat /LET b1 = roundto(b1,2) /LET b0 = roundto(b0,2) /LET dft = n-1 /LET dfr = 1 /LET dfe = dft-dfr /LET SSR = SSxy*SSxy/SSxx /LET SST = SSyy /LET SSE = SST-SSR /LET MSR = SSR/dfr /LET MSE = SSE/dfe /LET R2 = SSR/SST /LET SEb1= sqrt(MSE/SSxx) A straight line is fitted to some data using least squares and the following summary statistics:/DIS(newLine_m) /DIS(n_gw+eq_m)/DIS(n),/DIS(hSpace1_m) /DIS(xbar_gw+eq_m)/DIS(xm:0f),/DIS(hSpace1_m) /DIS(ybar_gw+eq_m)/DIS(ym:0f),/DIS(hSpace1_m) /DIS(itSSxy+eq_m)/DIS(SSxy:0f), /DIS(newLine_m) /DIS(itSSxx+eq_m)/DIS(SSxx:0f),/DIS(hSpace1_m) /DIS(itSSyy+eq_m)/DIS(SSyy:0f)./DIS(newLine_m) The least squares intercept and slope are /DIS(b0:2f) and /DIS(b1:2f), respectively, and the ANOVA table is /DIS(vSpace10_m) /DIS(web("","\begin{tabular}{|l|c|c|c|} \hline","
")) \ Source /DIS(seph_m) DF /DIS(seph_m) SS /DIS(seph_m) MS /DIS(nllh_m) /DIS(web("","","
")) \ Regression /DIS(sep_m) /DIS(dfr) /DIS(sep_m) /DIS(SSR:2f) /DIS(sep_m) /DIS(MSR:2f) /DIS(nll_m) /DIS(web("","","
")) \ Residual /DIS(sep_m) /DIS(dfe) /DIS(sep_m) /DIS(SSE:2f) /DIS(sep_m) /DIS(MSE:2f) /DIS(nll_m) /DIS(web("","","
")) \ Total /DIS(sep_m) /DIS(dft) /DIS(sep_m) /DIS(SST:2f)/DIS(sep_m)/DIS(nbsp_m) /DIS(nll_m) /DIS(web("","\end{tabular}","
")) /DIS(vSpace10_m) /LET xstar = random(7,10) /LET yhat = b0+b1*xstar /IMP "/dalphysicslib/Tools/Problem" What is the estimated mean value for /DIS(y_gw) when /DIS(x_gw+eq_m)/DIS(xstar)? /ANS(yhat:2f, tol=0.03, wgt=wgt_v, tries=tries_v) /LET yhat = random(18,22) /LET xstar = (yhat-b0)/b1 /IMP "/dalphysicslib/Tools/Problem" If the fitted value for /DIS(y_gw) is /DIS(yhat), what is the corresponding value for /DIS(x_gw)? /ANS(xstar:2f, tol=0.03, wgt=wgt_v, tries=tries_v) /LET percent = R2*100 /IMP "/dalphysicslib/Tools/Problem" What percent of the variation in /DIS(y_gw) is explained by the regression in /DIS(x_gw)? Enter an integer, without the /DIS(pct_u) sign. /ANS(percent:0f, tol=0.6, wgt=wgt_v, tries=tries_v) /IMP "/dalphysicslib/Tools/Problem" What is the standard error of the slope estimate? Enter 3 decimals. /ANS(SEb1:3f, tol=0.01, wgt=wgt_v, tries=tries_v) ---------------------- test.out ---------------------- // Stat2080 Assignment 8 Winter 2012/2013 // Question 2a /LET itX = mathBeg_m+"X"+mathEnd_m /LET itY = mathBeg_m+"Y"+mathEnd_m /LET itSSxx = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"xx"+subEnd_m /LET itSSyy = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"yy"+subEnd_m /LET itSSxy = mathBeg_m+"SS"+mathEnd_m+subBeg_m+"xy"+subEnd_m /LET itH0 = mathBeg_m+"H"+mathEnd_m+subBeg_m+"0"+subEnd_m /LET itHa = mathBeg_m+"H"+mathEnd_m+subBeg_m+"a"+subEnd_m /LET itF = mathBeg_m+"F"+mathEnd_m /LET n = 10 /LET xm = 5. /LET ym = 12. /LET SSxy = 121.+random(1,8) /LET SSxx = 136.+random(1,8) /LET SSyy = 155. /LET b1 = SSxy/SSxx // beta1_hat /LET b0 = ym-b1*xm // bet0_hat /LET b1 = roundto(b1,2) /LET b0 = roundto(b0,2) /LET dft = n-1 /LET dfr = 1 /LET dfe = dft-dfr /LET SSR = SSxy*SSxy/SSxx /LET SST = SSyy /LET SSE = SST-SSR /LET MSR = SSR/dfr /LET MSE = SSE/dfe /LET R2 = SSR/SST /LET SEb1= sqrt(MSE/SSxx) A straight line is fitted to some data using least squares and the following summary statistics:/DIS(newLine_m) /DIS(n_gw+eq_m)/DIS(n),/DIS(hSpace1_m) /DIS(xbar_gw+eq_m)/DIS(xm:0f),/DIS(hSpace1_m) /DIS(ybar_gw+eq_m)/DIS(ym:0f),/DIS(hSpace1_m) /DIS(itSSxy+eq_m)/DIS(SSxy:0f), /DIS(newLine_m) /DIS(itSSxx+eq_m)/DIS(SSxx:0f),/DIS(hSpace1_m) /DIS(itSSyy+eq_m)/DIS(SSyy:0f)./DIS(newLine_m) The least squares intercept and slope are /DIS(b0:2f) and /DIS(b1:2f), respectively, and the ANOVA table is /DIS(vSpace10_m) /DIS(web("","\begin{tabular}{|l|c|c|c|} \hline","
")) \ Source /DIS(seph_m) DF /DIS(seph_m) SS /DIS(seph_m) MS /DIS(nllh_m) /DIS(web("","","
")) \ Regression /DIS(sep_m) /DIS(dfr) /DIS(sep_m) /DIS(SSR:2f) /DIS(sep_m) /DIS(MSR:2f) /DIS(nll_m) /DIS(web("","","
")) \ Residual /DIS(sep_m) /DIS(dfe) /DIS(sep_m) /DIS(SSE:2f) /DIS(sep_m) /DIS(MSE:2f) /DIS(nll_m) /DIS(web("","","
")) \ Total /DIS(sep_m) /DIS(dft) /DIS(sep_m) /DIS(SST:2f)/DIS(sep_m)/DIS(nbsp_m) /DIS(nll_m) /DIS(we ---------------------- diff output ---------------------- diff -c /home/jrm/test.in /home/jrm/test.out *** /home/jrm/test.in 2013-09-21 20:31:23.000000000 -0300 --- /home/jrm/test.out 2013-09-21 20:32:06.000000000 -0300 *************** *** 47,79 **** Residual /DIS(sep_m) /DIS(dfe) /DIS(sep_m) /DIS(SSE:2f) /DIS(sep_m) /DIS(MSE:2f) /DIS(nll_m) /DIS(web("","","
")) \ Total /DIS(sep_m) /DIS(dft) /DIS(sep_m) /DIS(SST:2f)/DIS(sep_m)/DIS(nbsp_m) /DIS(nll_m) ! /DIS(web("","\end{tabular}","
")) ! /DIS(vSpace10_m) ! ! /LET xstar = random(7,10) ! /LET yhat = b0+b1*xstar ! ! /IMP "/dalphysicslib/Tools/Problem" ! What is the estimated mean value for /DIS(y_gw) when /DIS(x_gw+eq_m)/DIS(xstar)? ! ! /ANS(yhat:2f, tol=0.03, wgt=wgt_v, tries=tries_v) ! ! /LET yhat = random(18,22) ! /LET xstar = (yhat-b0)/b1 ! ! /IMP "/dalphysicslib/Tools/Problem" ! If the fitted value for /DIS(y_gw) is /DIS(yhat), what is the corresponding value for /DIS(x_gw)? ! ! /ANS(xstar:2f, tol=0.03, wgt=wgt_v, tries=tries_v) ! ! /LET percent = R2*100 ! ! /IMP "/dalphysicslib/Tools/Problem" ! What percent of the variation in /DIS(y_gw) is explained by the regression in /DIS(x_gw)? Enter an integer, without the /DIS(pct_u) sign. ! ! /ANS(percent:0f, tol=0.6, wgt=wgt_v, tries=tries_v) ! ! /IMP "/dalphysicslib/Tools/Problem" ! What is the standard error of the slope estimate? Enter 3 decimals. ! ! /ANS(SEb1:3f, tol=0.01, wgt=wgt_v, tries=tries_v) --- 47,50 ---- Residual /DIS(sep_m) /DIS(dfe) /DIS(sep_m) /DIS(SSE:2f) /DIS(sep_m) /DIS(MSE:2f) /DIS(nll_m) /DIS(web("","","")) \ Total /DIS(sep_m) /DIS(dft) /DIS(sep_m) /DIS(SST:2f)/DIS(sep_m)/DIS(nbsp_m) /DIS(nll_m) ! /DIS(we \ No newline at end of file Diff finished. Sat Sep 21 20:38:34 2013