X-Recipient: archive-cygwin@delorie.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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=lys
	tUN4VaAWMwiS0YytFLtwBSfzTWQTAjO1Yd2fez5SQCeDOQEW9UJwHAxT8mg3ioXo
	mPhunS8/Y00GbYCWp9026gfS82eBbVvMh4c0LYlkDFcOrLzH5K1c/sCDJaZgzGwK
	5QPg9BRsjBoxX/ow0BwbOVZa0kPbwJY/Vra7fgFQ=
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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=OeprvGevr
	cUCJ6MUy9OCi2R8djQ=; b=EJav7NbrMA0EjekEZt+YDoG+yU4R2aSKuSmaNvnH5
	/grbbBnr3hOBpw+FPjX6eeJkE43+ki+fOB2va7fCg1ZxldQ0g0BM2k/cXv1m0vZ1
	d7mwxD7rz07dbxkyEWy+pkXipH5atfwAJ+DmMbYdTljas0srbPeCI1K05AyB8tLF
	kk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=fish, ash, Sample, 32m
X-HELO: forward11j.cmail.yandex.net
Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0
To: cygwin@cygwin.com
From: Evgeny Grin <k2k@yandex.ru>
Subject: Subshell lost ANSI colors
Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4
Message-ID: <4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru>
Date: Thu, 20 Oct 2016 22:06:25 +0300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hi!

Noticed some time ago: most of subshells lost colors and prints some codes.
Sample output:
====================================================================================
User@PcName ~
$ dash
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit

User@PcName ~
$ ash
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit

User@PcName ~
$ zsh
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ exit

User@PcName ~
$ bash

User@PcName ~
$ exit
exit

User@PcName ~
$ mksh
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit

User@PcName ~
$ fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
User@PcName ~> exit


User@PcName ~
$ sh

User@PcName ~
$ exit
exit

User@PcName ~
$
====================================================================================

Default shell started with installed desktop shortcut (mintty).
bash, sh and fish shells print colorized prompt.
The rest prints ANSI codes.
Same happens in Windows standard console.

Am I doing incorrectly something?


--
Best Wishes,
Evgeny Grin

--
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

