Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <002301c15846$93ab0be0$0200a8c0@mike> From: "Chuck" To: Subject: Workarounds for the pipe character problem Date: Fri, 19 Oct 2001 03:34:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Here are a couple of ways to work around the problem of not being able to type a pipe character when running bash in a DOS box under windows 95/98/Me with a non-US keyboard. When KEYB.COM is loaded, typing +` in a DOS box gives a pipe character while +\ give the broken pipe character. That's only in a DOS box, for GUI programs these keys work the other way around. Unfortunately doesn't seem to work for Win32 console apps in Win 95/98/Me DOS boxes. So when you run bash in a DOS box, +` doesn't give a pipe, and +\ gives a broken pipe which is ignored by bash because it's a non-ascii character. Running bash in an rxvt terminal is ok though, gives a broken pipe (ignored), and +\ gives a pipe. A workaround for this would be to change the way KEYB.COM is remapping the keyboard, putting the pipe character on +\ where it can be got at without using the key. A pretty sensible way to do this would be to use XKEYB.EXE which comes with FreeDOS instead of KEYB.COM. The keyboard map files are plain text and there are instructions on editing them. Alternatively, if you feel like hacking binaries you could have a go at KEYBOARD.SYS. It turns out that this isn't easy, but the US keyboard layout is hardcoded into KEYB.COM and is easy to spot and edit see: http:// groups.google.com/groups?hl=en&selm=3a59643c.4048012%40news.ozemail.com.au How about a cygwin newsgroup? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/