| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | Yes, hits=5.7 required=5.0 tests=AWL,BAYES_20 |
| X-Spam-Check-By: | sourceware.org |
| From: | "Bravery, Gavin S" <gavin DOT bravery AT imperial DOT ac DOT uk> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Subject: | Slight issue in base-files-4.0-6 |
| Date: | Tue, 22 Mar 2011 13:31:13 +0000 |
| Message-ID: | <C5101A1534B7D7418DE06BC355FD7D63160EB7CC@icexch-m1.ic.ac.uk> |
| MIME-Version: | 1.0 |
| X-IC-MsgID: | 1Q21hy-00032u-Oz |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
Hi everyone,
I have a minor issue with the /etc/profile file in base files.
I fixed it a while back but the changes over the last few days broke it aga=
in (which made me remember I had done it, which then made me tell you :-).
I still use KSH (generally pdksh) and there is a problem with how this file=
is setting PS1.=20
Basically, the escapes aren't working right (in XWindows at the very least).
So I have now changed it to say:=20
case "${KSH_VERSION}" in
*MIRBSD*KSH* )
PS1=3D$(print '^[]0;${PWD}\n^[[32m${USER}@${HOSTNAME} ^[[33m${PWD/${HOM=
E}/~}^[[0m\n$ ')
;;
*PD*KSH* )
PS1=3D$(print '^[]0;${PWD}\n^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m=
\n$ ')
;;
esac
Please note, ^[ means I have done CTRL-V + ESC.
Also, MKSH and PDKSH need different settings, as PDKSH doesn't seem to have=
the ${name/pattern/replacement} syntax.
Thanks for all the work on this, CYGWIN is an excellent tool!
Gavin
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |