delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/02/21:03:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_NEUTRAL,TW_YG
X-Spam-Check-By: sourceware.org
Message-Id: <201103030203.p23230Gg015878@tigris.pounder.sol.net>
From: Tom Rodman <cygzs AT trodman DOT com>
Reply-to: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: interactive shell mis-parsing 1st two words on line
In-reply-to: <201102252157.p1PLvCN0009250@tigris.pounder.sol.net>
References: <201102252157 DOT p1PLvCN0009250 AT tigris DOT pounder DOT sol DOT net>
Date: Wed, 02 Mar 2011 20:03:00 -0600
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT somehost" treated like "ssh; txr6 AT somehost":
> 
>   ~ $ ssh txr6 AT 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 AT somehost: command not found
>   ~ $ ssh txr6 AT 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

- Raw text -


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