X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 3 May 2010 19:38:17 +0100 Message-ID: Subject: Re: $PS1 doesn't appear to work the same after version 1.7 From: Andy Koppe To: lynn AT swcp DOT com, cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com lynn wrote: > I use the following to setup my $PS1 bash prompt: > > PS1=3D"\[\033]0;\w\007\033[32m\]\u@\h\[\033[36m \W\033[0m\]> " > > This attempts to emit the username AT hostname current_folder> =C2=A0(in col= or) You've got the \W and the space before it inside \[...\] which tells readline not to count it towards the length of the prompt. Confusion ensues. Andy -- 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