X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=p9wxGMtmFdU+ibzV TzKomdSJnea0fszO7mFiG5RI1i5TbxOFLxh7/1RGe4nQt3/BKdQHVylC3btfUSee caAyLBTVZgauPZ7WoFgSV/S50ZYKzFGheOl55chew83lrb0cy0WRXhxH6fbCbQKn dY/XzPtP2Ny61ODCKvh8A4ecISE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=A2EZTvFmNtxBwNuUwh4NZP D7Gzw=; b=jtUVOOozqKaixqbfRjbtt7w4cu3CIVE/USJihZfxCv3G/M4WQQ/T+i wkcPefd2I10WGBt6oppxU+GMuIi1TQJbiahQLqLWdIadO5kDMaO1SpG4oe/IICVu pMBE0wmF6cp+ApWTL75Cs5Y22H11tO+qtTmdIYSSS/gZHPZx9Ulwg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=clue, sequences X-HELO: mout.kundenserver.de Subject: Re: Fw: failure notice To: cygwin AT cygwin DOT com References: <1780126873 DOT 2852582 DOT 1535310256762 DOT ref AT mail DOT yahoo DOT com> <1780126873 DOT 2852582 DOT 1535310256762 AT mail DOT yahoo DOT com> From: Thomas Wolff Message-ID: <13e8a47f-9546-5dd1-67b2-c9e968027ccd@towo.net> Date: Sun, 26 Aug 2018 23:41:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1780126873.2852582.1535310256762@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes > ... > > PS1="\[\e[1;32m\]\h \! $ \[\e[0m\] " > > The real issues is that I still have no real clue on how these escape > sequences work!! ... `man bash`, section PROMPTING; the \[ and \] are not escape sequences for the terminal but meta syntax in the prompt, telling the shell that the string inside is an escape sequence and shall not be accounted for prompt line width. If you get that wrong, the shell will obviously be confused about its respective current position. -- 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