delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/06/22:55:17

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4B73tGEj4073223
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4B73tGEj4073223
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=EFxroPiL
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 285DC3858423
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1733543714;
bh=KcOFc7obOT/wQCYAAO7VRP+Fmj30bTW5lObzf8WBLfI=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=EFxroPiLtvwgEb0ahd9Awg4HSWbEW9N+XoRi+WGB+ma86luFN/DcUxO1mEaP/32g9
K95acfK396xQzc8QGN4bSiyWyJc1aJCX7Ktx/YcUw3gCuouHqfz/v/6+TGJXwPZVSL
5//WNPpiyquGgRI9GYHJUxo9yAXvyqXKSzircypQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8AA0D385840E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8AA0D385840E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1733543607; cv=none;
b=eO8t5z9D2dPVufd7lij8q9xtD14mNDNeHIpzIdH6qvcIgsIY+yZW23VOQ4VK/W/27W2JMSFGJbw/Ld/grSv+sKeGLXZMjXy7sYC+ptoSpvtf85/9vIsYWXhK3NsrcwNS6yr3zW1C/sMGkdRMslXWCr/WEZYKSq9BAPu/JX6B/iQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1733543607; c=relaxed/simple;
bh=Mcxy3ImQPGwjlbCUkUxDClSdxYHaYDJdMZotoaLBmMw=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=QJ8TYUssBFyIrMOK4IVpzZ17LwRlaITFHyBWcaCBlUUM8mAV+4z/b9a5fSklvRb/VwzV6yP0KAUVzM160IN2JljZlNeWTO9W3rFYC7QCuGyibgHHVEC9ktOlk55nDfZoBlBeaB+W+BdeQjz/KBg5gqlekI7MPo+LaYK2bAlzo6A=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AA0D385840E
Date: Sat, 07 Dec 2024 03:53:19 +0000
To: Keith Thompson <Keith DOT S DOT Thompson AT gmail DOT com>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Conflict between tmux and cygwin
In-Reply-To: <CAAHpriMb0cYqx+zyByV2_1Zkfpj5zX3JSaAmWk4o8AMcFuAcwA@mail.gmail.com>
References: <CAAHpriMb0cYqx+zyByV2_1Zkfpj5zX3JSaAmWk4o8AMcFuAcwA AT mail DOT gmail DOT com>
Message-ID: <BE586CB4-5243-4C7C-9E32-EA35980195B7@kircheis.it>
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4Y4vNy5WQBz9slN
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Federico Kircheis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Federico Kircheis <federico AT kircheis DOT it>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 7 December 2024 02:48:50 UTC, Keith Thompson <Keith DOT S DOT Thompson AT gmail DOT com> wrote:
>It's not really a tmux issue. You can demonstrate it just by invoking
>a shell.
>
>For example, if you "cd /tmp" and then invoke a new shell with
>"bash -l", the code in /etc/profile will cd to your home directory.
>(This doesn't happen on Ubuntu, for example, which has a
>different /etc/profile.)
>
>But if you invoke bash without "-l", or with "CHERE_INVOKING=1 bash
>-l", the new shell will have /tmp as its current directory.
>
>"chere" is a script, installable via Cygwin setup, that enables
>opening a Cygwin terminal in a specific directory via the Windows
>Explorer context menu (right-click). I haven't tried it myself yet.
>
>Here's the relevant code from /etc/profile :
>
># Make sure we start in home unless invoked by CHERE
>if [ ! -z "${CHERE_INVOKING}" ]; then
>  unset CHERE_INVOKING
>else
>  cd "${HOME}" || echo "WARNING: Failed attempt to cd into ${HOME}!"
>fi

Hi,

Yes, I wrote myself that it is not a tmux issue but a config in /etc/profile, as it is also written on the bug report.

The question was of it is possible to have tmux work correctly out of the box without having end users changing /etc/profile, and if this conflict in functionalities was known to packagers and mantainers

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019