DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4B72o1W64052820 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 4B72o1W64052820 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=EmElah3D X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDD8F3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1733539800; bh=4eU29jgiXgNr9IxEPBpVSZvbZgQgaB9Adm7zdqUe9IU=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=EmElah3DLnviGQzv47nLL0vi8nKhmjzjwRER9Ygw3Uza1WTBBQ9sg91dX1eTHc8zX 0u59N2DlIhQaQ+4WHkEwfZqRjUO6DdozeujxlTGa+a5HFyGrSszPR8E6GEcknIUss3 olTlm3SUduGTk2GLQJPuRoEfO6t3Z2l5J9Iv23pE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29CDE3858410 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 29CDE3858410 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1733539744; cv=none; b=cA1CBWi7GBpMfI6XS6gOenq1UJuHb/j9ozg/4CajQWLAziDd0uwpVFD5Tyjl6bW1RMmW9txK+D7Qsbl0659gZ9pp1sHbk4Hr3DtP3Q9vZFz42o+VjoEMR194ujJvItU3xcT3XQeGNZ1H2OuYtgyvgEYcQONTFARKkeHm05opElc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1733539744; c=relaxed/simple; bh=ukcGAgAnAZnq9ZLRLWRypQ7VDQkPRUfBMcoqQFPtd7g=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=nGOke4DELmSpgcB9u6OqyOKlnUP7Mf2v/3qbEMCwRZWHq3prwtdShwrRAElh0xunWEpnFnG9xeaj7glvi3ch8hkDieu+bKlfvoYiEQEOw1DdeCUye/MG7l/W7R3Qdc7ZzwG8VsAUKEsO5TrS9bggFUkbC+3xAjflzx8i6wych/U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29CDE3858410 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733539742; x=1734144542; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9WVpyew0iMZCqT0xWZyZu5SsPxAMp/cVO4q+nM6nSm8=; b=qlk5sqKz/lylJNObmQwHFajH7zs0QE/L+KURX6UgJBKqcZ5Ak557FlUW/N2QFPXrDK 7gjQHY1naiUBe+EHm5U9ajIK7zie1Uf1UGDBnJIheRjel+/WRGa5dqGyv9UBGE2oEnMW qCK69+eDJXjqEUZxKL9mLBEaoeQKnq+6H8wa1vqfe/WkCmSZespvFaQdSNTEVSXknY9o +6ZE2TypoAiocopS0lsli1AsLRbNcjuagyeakTV0pQ5Rw764L+uP8sLJLiDVrKvud7j3 R4tv9xB+PQKgSviQOl0gp1dcMiHvplZJxTqcSGI7ipuPdz7Q4be581j+EE5hziheFxfl GWIQ== X-Gm-Message-State: AOJu0YzI7FUtTGL+X2SN02z1EsA2voxnLb8BRmTqfLrGxHfqUdHzJVty qhK2GwLPbnI3IBnBMn3uO+0xuGMs2eatRk4WgaCJzOtFbt66mTqAngBecH2eBToYpo6YnSkmFIc GcTQUC+Dnx1l1ccGElXi3+nN1ZLfinkF3 X-Gm-Gg: ASbGncv1uPkkwkOarLke6YsQ18luB01zZkZv9QnqK0zYzzsQmAfAQtwV4HR2kt8Gm3K C1t+B4GbGPUN0SvYlrx0obkt8RVIR91Y= X-Google-Smtp-Source: AGHT+IHUCM2VCFF7odn+9w7hX/4Y1D/6R3O2xPCmH9MISAo8Ap57hn9ugCWIEf2oxgbXSADw6k525a1JYJeJ8RaTfCo= X-Received: by 2002:a05:6000:4020:b0:386:366d:5d03 with SMTP id ffacd0b85a97d-386366d5ec8mr184574f8f.16.1733539741983; Fri, 06 Dec 2024 18:49:01 -0800 (PST) MIME-Version: 1.0 Date: Fri, 6 Dec 2024 18:48:50 -0800 Message-ID: Subject: Re: Conflict between tmux and cygwin To: The Cygwin Mailing List X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Keith Thompson via Cygwin Reply-To: Keith Thompson Cc: Keith Thompson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 -- 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