Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=polycademy-com.20150623.gappssmtp.com; s=20150623;
        h=sender:to:reply-to:from:subject:organization:message-id:date
         :user-agent:mime-version:content-transfer-encoding;
        bh=IFTdFjQ+8wJfrOcNHBLTDV39WNj6sjZboKRVSNDAUqE=;
        b=OH53adC++0qnCkjBYuAYILjmW54vyM2ShdOYLjfvVhnvuA3xtMHDe9oLyYOxPvjY1f
         ujGSZfFSYnI5tbVcCiHNgWuiR82WMxvbzWq59oySmyI1D6GlzdIU5ZCjAmeyXT4XVjYz
         EaSO2XqShH11HJssiu6nzbZAdXNCinK4xoqguElEQbUtofoVlDz9QnGEA/raoo7DSKDU
         Y3nPtP6DqQRcp8YEf0pleQD3be72O4f0IptJtVdi3pOtSyhQVsVvz468Vbc83Y5GUIb4
         oyFG37pd1tKpsyULewQPkY6p8890rE0dhznIFy1Zv2HTm8JGVnFmLepZNJcqOEZj4NjW
         1Mvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:sender:to:reply-to:from:subject:organization
         :message-id:date:user-agent:mime-version:content-transfer-encoding;
        bh=IFTdFjQ+8wJfrOcNHBLTDV39WNj6sjZboKRVSNDAUqE=;
        b=JCopMn346hR5glowMTx4bWpXh/qE5+K/iH3hnufcmfWjlprMJCoi8GOKJOiQhPUSHk
         4wZZdD8ArOyL8McmJvRlY7Gk1aTzFenTJTy6HHeHr5p2TYbb8fyqu2GMTIytsO0rePFS
         Ge0JL+JrDiaZIYD93suEzRbn7El9tbCQAihwwFMlItBlpbBLK66WJ7i0TfMJ8tEwJnbe
         EL8dEUiCS94A9wWGL2YC2qtQFab4PMGjcAM6PYJ9dI8k4rRHzRcciMuaDpcSxiOF4W14
         ldwv/lQT8JS+gTbp9cJU5GgAf6fqf9oH3GSxN5eRwj4/d3UhAlXkL90hsGd72i9dCmqc
         Jjeg==
X-Gm-Message-State: AOPr4FWaapubUU3GpuhTtdotXNcHB3wRq1XXLhA3L+vNJH4zcGI3yWePoydo8qW0hHSPKw==
X-Received: by 10.98.24.208 with SMTP id 199mr36504749pfy.160.1461436191605;
        Sat, 23 Apr 2016 11:29:51 -0700 (PDT)
Sender: Roger Qiu <roger.qiu@polycademy.com>
To: zsh-workers@zsh.org
Reply-To: roger.qiu@matrix.ai
From: Roger Qiu <roger.qiu@matrix.ai>
Subject: Possible ZSH bug with IO direction
Organization: Matrix AI
Message-ID: <571BBF3C.50402@matrix.ai>
Date: Sun, 24 Apr 2016 04:30:20 +1000
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Seq: zsh-workers 38313

Hi,

I'm running ZSH on Cygwin. But earlier I noticed this error:

```
 > gm convert -compress JPEG - - < input.jpg > output.jpg
gm convert: Corrupt JPEG data: 873 extraneous bytes before marker 0xd9 
(/tmp/gmo1fx92).
```

These 2 work fine in ZSH:

```
 > cat input.jpg | gm convert -compress JPEG - - > output.jpg
 > gm convert -compress JPEG input.jpg output.jpg
```

While all 3 above commands work in Bash without problems.

I'm reporting it here to see if anybody else is meeting the same 
problem, and if so, perhaps it is a ZSH bug.

I had asked this earlier in: 
http://stackoverflow.com/questions/36495113/in-zsh-redirecting-image-file-into-graphic-magick-results-in-corrupt-jpeg-data

Thanks,
Roger

-- 
Founder of Matrix AI
https://matrix.ai/
+61420925975

