X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,TW_PD X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Fri, 30 Apr 2010 23:25:14 -0400 Message-ID: Subject: Minor patch to /etc/profile From: Chris Sutcliffe To: The Cygwin Mailing List Content-Type: multipart/mixed; boundary=0016e648ace87b8e3e04857fe819 X-IsSubscribed: yes 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 --0016e648ace87b8e3e04857fe819 Content-Type: text/plain; charset=ISO-8859-1 The PS1 definition for ksh in /etc/profile uses the literal ascii characters '^[' for the escape sequence as opposed to the single byte escape control code. The attached patch corrects that as well as HOSTNAME not being set correctly (at least for mksh). Finally, would it be appropriate to extend the 'ksh' case to catch both pdksh as well as mksh? Basically the case would be: *ksh* | -*ksh* | */*ksh* | \ *ksh*.exe | -*ksh*.exe | */*ksh*.exe ) Chris -- Chris Sutcliffe http://emergedesktop.org http://www.google.com/profiles/ir0nh34d --0016e648ace87b8e3e04857fe819 Content-Type: application/octet-stream; name="profile.diff" Content-Disposition: attachment; filename="profile.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g8nvbhvr0 LS0tIHByb2ZpbGUub3JpZwkyMDEwLTA0LTMwIDIyOjUwOjI5LjcxODc1MDAw MCAtMDQwMAorKysgcHJvZmlsZQkyMDEwLTA0LTMwIDIzOjA1OjM0LjE0MDYy NTAwMCAtMDQwMApAQCAtOTksMTEgKzk5LDExIEBACiBrc2gqICAgICB8IC1r c2gqICAgICB8ICova3NoKiB8IFwKIGtzaCouZXhlIHwgLWtzaCouZXhlIHwg Ki9rc2gqLmV4ZSApCiAJIyBTZXQgYSBIT1NUTkFNRSB2YXJpYWJsZQotCXR5 cGVzZXQgLWwgSE9TVE5BTUUKKwl0eXBlc2V0IEhPU1ROQU1FPWBob3N0bmFt ZWAKIAogCSMgU2V0IGEgZGVmYXVsdCBwcm9tcHQgb2Y6IHVzZXJAaG9zdCBh bmQgY3VycmVudF9kaXJlY3RvcnkKLQlQUzE9J15bXTA7JHtQV0R9XkcKLV5b WzMybSR7VVNFUn1AJHtIT1NUTkFNRX0gXltbMzNtJHtQV0R9XltbMG0KKwlQ UzE9JxtdMDske1BXRH0HCisbWzMybSR7VVNFUn1AJHtIT1NUTkFNRX0gG1sz M20ke1BXRH0bWzBtCiAkICcKIAk7OwogenNoKiAgICAgfCAtenNoKiAgICAg fCAqL3pzaCogfCBcCg== --0016e648ace87b8e3e04857fe819 Content-Type: text/plain; charset=us-ascii -- 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 --0016e648ace87b8e3e04857fe819--