delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/18/14:39:16

From: elliot AT empire DOT net (Elliot)
Subject: Bash 2.01 function w/line breaks? Rvxt?
18 Sep 1997 14:39:16 -0700 :
Message-ID: <34219BE2.D8FEB721.cygnus.gnu-win32@empire.net>
Reply-To: elliot AT wellspring DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I have Bash 2.01 and a recent, though not the very latest cygwin.dll
from Sergei (is anyone maintaining a mirror of Sergei's site in the
US?).

I can read most of my .bashrc file (that is, the \n are correct and the
mount is done with -b) but if there is a function with a line break in
the middle. bash complains.

Example:

....
psg ()
{
  ps -aux |  grep $1 | grep -v grep
}

This causes Bash complain about a syntax error near psg().  This works
under 2.01 on a Sparc.  This used to work on 1.8 under cygwin32.

Now, when I change it to

psg () {
....

AND amke sure there is a space after the open brace, then it works.  Any
ideas?

Also, I got rxvt to work (cool) using eXodus as an X server.  Is there
documentation on it (yes, I see rvxt -h).  What are the defaults?  What
is the default font?  I notice that the term type is xterm-color, but I
don;t see any colors.  I still get "rxvt: Failed to open input method"
and a few "seteuid called and it's not done yet" messages.  Normal?

Thanks!!  Great job Sergei.  Come the US; I'm sure you'll easily find a
job here!

--Elliot


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019