Fw: Bug in Cygwin/XFree86 Frequently Asked Questions

2003-07-07 Thread Arne Christian Hårseth
Hi!

I am not an expert on bash and sh but I could only make the cygwin-sfree-fax
topic 4.7 and 4.8 work with sh, not bash, so I assume it should be corrected
as suggested in my mail below?

Best regards
Arne Hårseth

PS: I do not subscripe to this list.

- Original Message -
From: Harold L Hunt II [EMAIL PROTECTED]
To: Arne Christian Hårseth [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:07 AM
Subject: Re: Bug in Cygwin/XFree86 Frequently Asked Questions


Arne,

Can you send this to [EMAIL PROTECTED]  Your suggestion seems
correct, but I would like other people to see it and add their thoughts.

Thanks for contributing,

Harold

Arne Christian Hårseth wrote:

 Hi!

 I see that you have the last revision of the Cygwin/XFree86 Frequently
Asked
 Questions so I take the chance on sending this to you. Hope it is OK?

 I think there is a bug in

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-bash-extended-cha
 rs.
 The description in 4.7 and 4.8 is said to cover bash but it actually only
 works for sh. With bash you need to make a .bashrc instead of inputrc
 containing something like this:

 if test $PS1
 then
   PS1='\h(\u) \W \!\$ '
   bind \
 'set meta-flag on'  \
 'set convert-meta off'  \
 'set output-meta on'\
 'set show-all-if-ambiguous on'  \
 'set expand-tilde on'
 fi

 This also adds a nice prompt.

 Best regards
 Arne Christian Hårseth






Re: Fw: Bug in Cygwin/XFree86 Frequently Asked Questions

2003-07-07 Thread Igor Pechtchanski
Arne,

There's an entry in the main Cygwin FAQ that may be of interest:
http://cygwin.com/faq/faq.html#SEC49.
Igor

On Mon, 7 Jul 2003, Arne Christian Hårseth wrote:

 Hi!

 I am not an expert on bash and sh but I could only make the cygwin-sfree-fax
 topic 4.7 and 4.8 work with sh, not bash, so I assume it should be corrected
 as suggested in my mail below?

 Best regards
 Arne Hårseth

 PS: I do not subscripe to this list.

 - Original Message -
 From: Harold L Hunt II [EMAIL PROTECTED]
 To: Arne Christian Hårseth [EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 5:07 AM
 Subject: Re: Bug in Cygwin/XFree86 Frequently Asked Questions

 Arne,

 Can you send this to [EMAIL PROTECTED]  Your suggestion seems
 correct, but I would like other people to see it and add their thoughts.

 Thanks for contributing,

 Harold

 Arne Christian Hårseth wrote:

  Hi!
 
  I see that you have the last revision of the Cygwin/XFree86 Frequently
 Asked
  Questions so I take the chance on sending this to you. Hope it is OK?
 
  I think there is a bug in
 
 http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-bash-extended-cha
  rs.
  The description in 4.7 and 4.8 is said to cover bash but it actually only
  works for sh. With bash you need to make a .bashrc instead of inputrc
  containing something like this:
 
  if test $PS1
  then
PS1='\h(\u) \W \!\$ '
bind \
  'set meta-flag on'  \
  'set convert-meta off'  \
  'set output-meta on'\
  'set show-all-if-ambiguous on'  \
  'set expand-tilde on'
  fi
 
  This also adds a nice prompt.
 
  Best regards
  Arne Christian Hårseth

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton



Re: Fw: Bug in Cygwin/XFree86 Frequently Asked Questions

2003-07-07 Thread Harold L Hunt II
Igor,

Is his suggestion correct?  If so, I will need to update the 
Cygwin/XFree86 FAQ.

Thanks,

Harold

Igor Pechtchanski wrote:

Arne,

There's an entry in the main Cygwin FAQ that may be of interest:
http://cygwin.com/faq/faq.html#SEC49.
Igor
On Mon, 7 Jul 2003, Arne Christian Hårseth wrote:


Hi!

I am not an expert on bash and sh but I could only make the cygwin-sfree-fax
topic 4.7 and 4.8 work with sh, not bash, so I assume it should be corrected
as suggested in my mail below?
Best regards
Arne Hårseth
PS: I do not subscripe to this list.

- Original Message -
From: Harold L Hunt II [EMAIL PROTECTED]
To: Arne Christian Hårseth [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:07 AM
Subject: Re: Bug in Cygwin/XFree86 Frequently Asked Questions
Arne,

Can you send this to [EMAIL PROTECTED]  Your suggestion seems
correct, but I would like other people to see it and add their thoughts.
Thanks for contributing,

Harold

Arne Christian Hårseth wrote:


Hi!

I see that you have the last revision of the Cygwin/XFree86 Frequently
Asked

Questions so I take the chance on sending this to you. Hope it is OK?

I think there is a bug in

http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-bash-extended-cha

rs.
The description in 4.7 and 4.8 is said to cover bash but it actually only
works for sh. With bash you need to make a .bashrc instead of inputrc
containing something like this:
if test $PS1
then
 PS1='\h(\u) \W \!\$ '
 bind \
   'set meta-flag on'  \
   'set convert-meta off'  \
   'set output-meta on'\
   'set show-all-if-ambiguous on'  \
   'set expand-tilde on'
fi
This also adds a nice prompt.

Best regards
Arne Christian Hårseth





Re: Fw: Bug in Cygwin/XFree86 Frequently Asked Questions

2003-07-07 Thread Igor Pechtchanski
Harold,

His suggestion is equivalent to having a .inputrc with the lines he passes
to bind.  Two of the options (show-all-if-ambiguous and
expand-tilde) have nothing to do with 8-bit characters, the other three
are the same as in the FAQ entry.  In other words, the FAQ entry *is*
correct, and don't bother changing it.

As for the distinction between bash and sh -- .inputrc is used by the
readline library, and, FWICS, ash (the /bin/sh in Cygwin) does not use
readline at all (but bash does).  So I don't see why the FAQ suggestion
didn't work for Arne in bash, and how it could possibly work in sh (unless
he tried it on Linux, where /bin/sh is a symlink to bash, which still
doesn't explain why it didn't work in bash).
Igor

On Mon, 7 Jul 2003, Harold L Hunt II wrote:

 Igor,

 Is his suggestion correct?  If so, I will need to update the
 Cygwin/XFree86 FAQ.

 Thanks,

 Harold

 Igor Pechtchanski wrote:

  Arne,
 
  There's an entry in the main Cygwin FAQ that may be of interest:
  http://cygwin.com/faq/faq.html#SEC49.
Igor
 
  On Mon, 7 Jul 2003, Arne Christian Hrseth wrote:
 
 
 Hi!
 
 I am not an expert on bash and sh but I could only make the cygwin-sfree-fax
 topic 4.7 and 4.8 work with sh, not bash, so I assume it should be corrected
 as suggested in my mail below?
 
 Best regards
 Arne Hrseth
 
 PS: I do not subscripe to this list.
 
 - Original Message -
 From: Harold L Hunt II [EMAIL PROTECTED]
 To: Arne Christian Hrseth [EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 5:07 AM
 Subject: Re: Bug in Cygwin/XFree86 Frequently Asked Questions
 
 Arne,
 
 Can you send this to [EMAIL PROTECTED]  Your suggestion seems
 correct, but I would like other people to see it and add their thoughts.
 
 Thanks for contributing,
 
 Harold
 
 Arne Christian Hrseth wrote:
 
 Hi!
 
 I see that you have the last revision of the Cygwin/XFree86
 Frequently Asked Questions so I take the chance on sending this to
 you. Hope it is OK?
 
 I think there is a bug in
 http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-bash-extended-chars.
 The description in 4.7 and 4.8 is said to cover bash but it actually only
 works for sh. With bash you need to make a .bashrc instead of inputrc
 containing something like this:
 
 if test $PS1
 then
   PS1='\h(\u) \W \!\$ '
   bind \
 'set meta-flag on'  \
 'set convert-meta off'  \
 'set output-meta on'\
 'set show-all-if-ambiguous on'  \
 'set expand-tilde on'
 fi
 
 This also adds a nice prompt.
 
 Best regards
 Arne Christian Hrseth

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton