My installation of Pascal was very recent (and I think that I got the recent version). It was a binary distribution this time which came from the file gpc-20030830-with-gcc.i686-pc-cygwin.tar
gpc -v gives: Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/specs Configured with: ../configure --enable-languages=pascal --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --enable-shared --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr Thread model: posix gpc version 20030830, based on gcc-3.2.3
Having read the bash manual (thanks Russel) I now realise that my pipes weren't working because the output was going to stderr rather than stdout and the pipe needs to be &> to redirect both.
Thanks again to Chief and Russel for their help.
Chris
Dr Christian Hicks Senior Lecturer, School of Mechanical & Systems Engineering, Stephenson Building, University of Newcastle upon Tyne, NE1 7RU. Phone: +44 191 222 6238 Mobile 0795 8317804 Fax: + 44 191 222 8600 Homepage: http://www.staff.ncl.ac.uk/chris.hicks