X-Spam-Check-By: sourceware.org Message-ID: From: Bas van Gompel Subject: Shell (bash, (pd)ksh, zsh, /not/ ash) + exec + here-doc + redirect == trouble! Reply-To: cygwin mailing-list Organisation: Ehm... User-Agent: slrn/0.9.8.1 (Win32) Hamster/2.1.0.0 KorrNews/4.2.1 To: cygwin AT cygwin DOT com Lines: 53 Date: Wed, 25 Jan 2006 06:11:47 +0100 (MET) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, Try the following script: === begin testexec.sh === #!/bin/ksh exec 5<&0 /bin/ksh <