* 1.7.9: zsh, "unexpected end of file"
@ 2011-11-30 21:09 Thomas Hafner
2011-12-06 7:13 ` Peter A. Castro
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Hafner @ 2011-11-30 21:09 UTC (permalink / raw)
To: cygwin
Hello,
could zsh be repaired such that it behaves successfully like bash?
Here goes the problem description.
1. In shell /usr/bin/zsh-4.3.12.exe:
gunzip < r1s.gz > r1s
- Expected: unpack to r1s
- Observed: command fails with output "gzip: stdin: unexpected end of
file"
2. However this works:
gunzip r1s.gz
3. If I repeat 1. with bash rather than zsh, it works.
The file r1s.gz can be get there http://tinyurl.com/bs7kefh .
Regards
Thomas Hafner
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 1.7.9: zsh, "unexpected end of file"
2011-11-30 21:09 1.7.9: zsh, "unexpected end of file" Thomas Hafner
@ 2011-12-06 7:13 ` Peter A. Castro
0 siblings, 0 replies; 2+ messages in thread
From: Peter A. Castro @ 2011-12-06 7:13 UTC (permalink / raw)
To: Thomas Hafner; +Cc: cygwin
On Wed, 30 Nov 2011, Thomas Hafner wrote:
> Hello,
Greetings, Thomas,
(sorry for the late reply)
> could zsh be repaired such that it behaves successfully like bash?
> Here goes the problem description.
>
> 1. In shell /usr/bin/zsh-4.3.12.exe:
> gunzip < r1s.gz > r1s
> - Expected: unpack to r1s
> - Observed: command fails with output "gzip: stdin: unexpected end of
> file"
> 2. However this works:
> gunzip r1s.gz
> 3. If I repeat 1. with bash rather than zsh, it works.
>
> The file r1s.gz can be get there http://tinyurl.com/bs7kefh .
Most curious.
I can repro your symptoms. However, the following combinations do work:
cat r1s.gz | gunzip > r1s
zcat r1s.gz > r1s
It seems only directly re-directing stdin fails.
Hmm...there's something rather strange about this specific .gz file of
yours. I'll have to analyse it a little more to determine what's going
on. On a guess, I'd say there's a control sequence in it that's tickling
the I/O handler in some interesting way.
How, exactly, (if I may ask), did you create this file?
It looks like random noise to me.
> Regards
> Thomas Hafner
--
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-06 7:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-30 21:09 1.7.9: zsh, "unexpected end of file" Thomas Hafner
2011-12-06 7:13 ` Peter A. Castro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).