This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: interactive shell mis-parsing 1st two words on line


The '[ANNOUNCEMENT] Updated: bash-4.1.10-4' 
( http://cygwin.com/ml/cygwin/2011-02/msg00551.html ) says:

  This is a minor rebuild which picks up an upstream patch to fix memory
  corruption when using \W in $PS1. 

--
So I upgraded bash on Monday to 4.1.10.

The problem continues (I show my $PS1 prompt below since patch mentioned above
refers to $PS1):

# example showing mis parsing of 'echo $BASH_VERSION':

    # 16:36:58 Tue 110301 1j tty5 4908 w4 /drv/c
    # my-hostname rodmanto $ echo $BASH_VERSION

    bash: 4.1.10(4)-release: command not found
    # 09:37:58 Wed 110302 1j tty5 4908 w4 /drv/c
    # my-hostname rodmanto $ echo $BASH_VERSION
    4.1.10(4)-release
    # 09:38:02 Wed 110302 1j tty5 4908 w4 /drv/c
    # my-hostname rodmanto $ echo $PS1
    # \t \D{%a %y%m%d} \jj \l 4908 w4 \w\n# \h \u $

On Fri 2/25/11 15:57 CST Tom Rodman wrote:
--snip
> After loading bash 4.1.9 recently, I have been getting sporatic
> errors in an interactive bash shell.  The first word on the
> commandline is run w/o any args, next the rest of the line is
> run by the shell (2nd word used for command). After such error,
> if I !!, or ^R, ie use the history to repeat the command, then
> it works.  It happens several times per day.  (I did not run
> rebaseall, will plan to.)
> 
> # example: "ssh txr6@somehost" treated like "ssh; txr6@somehost":
> 
>   ~ $ ssh txr6@somehost
>   usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
>              [-D [bind_address:]port] [-e escape_char] [-F configfile]
>              [-I pkcs11] [-i identity_file]
>              [-L [bind_address:]port:host:hostport]
>              [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
>              [-R [bind_address:]port:host:hostport] [-S ctl_path]
>              [-W host:port] [-w local_tun[:remote_tun]]
>              [user@]hostname [command]
>   bash: txr6@somehost: command not found
>   ~ $ ssh txr6@somehost
>   Last login: Thu Feb 24 16:32:57 CST 2011 on /dev/pts/5 from 10.237.138.122
>   ******************************************************************
>                           somehost
> 
>        Access to this system is limited to authorized users only.
>        If you are not an authorized user of --SNIP
> --
> some basic info:
> 
>   ~ $   date;uname -a; cygcheck -c cygwin
>   Wed, Feb 23, 2011  8:22:33 PM
>   CYGWIN_NT-5.1 neon 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
>   Cygwin Package Information
>   Package              Version        Status
>   cygwin               1.7.7-1        OK
>   ~ $ echo $BASH_VERSION
>   4.1.9(2)-release
>   ~ $   date;uname -a; cygcheck -c bash
>   Wed, Feb 23, 2011  8:23:06 PM
>   CYGWIN_NT-5.1 neon 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
>   Cygwin Package Information
>   Package              Version        Status
>   bash                 4.1.9-2        OK
> 
> This is happening on two XP computers of mine.
> 
> --
> thanks,
> Tom
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]