delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/08/11/13:24:07

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47BHO6ge2315583
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=CSpiMy/M
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C23383858D3C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1723397044;
bh=1HtobuXfTXjETG4N3Y83sIjp5ZZjXCrwlMNGmo0G20g=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=CSpiMy/MP2SOSIUdkZi2hOMzEFEVxzYyoYo1673zGI8W8rwP/wtO9xyfjHcUt43Wf
jaajTRD3vNd4BOzs428PUsaJ+jWXClzBn5pVvMY+jD/qXQR0HFRQzIefCO7XSGAyj8
rFcs+qhqPNEcvxMdzI9CTT6eXL3rTC0HR1wGTp4o=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B72A73858D34
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B72A73858D34
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1723396989; cv=pass;
b=PJPotIA6jmpdyt/Uk7yujhlPN452QJIRSYMgNPbng7Jf76Dgy71mUD2bBdQi+jnl6CCfNpgyUfeCU8tM1v9vMEy383X/mMJHsoGxeBl3MXRhuhaam1sODeJ0COZ1d+yeS4ovHPowsiiuGow+tZn75h06rvPZ67VH/qtDsw39/vI=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1723396989; c=relaxed/simple;
bh=bBOWBFrI/J2PNyNkBeUW/ug7Mlu4R4bV1ZgfkWbKdWM=;
h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;
b=OsrYaKvUaBxkGNECJ3V+aU6o+ZmlbCMzCeg64KjfYZ+QVObY1Den/myAVF7KOl44agWSF9AVG4u/Xw95HwnVPRM2w5yLLEhnjVJDMLVn5E0lZPpd+0xBfPX8TwXyGF47dktiUEONW5FE9Pa8l1yQjGOCmrcfIqnNtNar0PEubUQ=
ARC-Authentication-Results: i=2; server2.sourceware.org
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=LAMBM1APKSAWtmX8vablLNnJjXYzrccVWMgL0njr7hYaCAjppb1+aSNEqi1TSW6rvEaNuGmSs13krJBcSipZz0fF+Pr9Vp6v8TzXlQWp/Il4/pH0kwZ4hU8c+2qTuOcWm2R/e+xGu6QjEIvfVhLwkFUXQEgGEizQMRz/GSTHxmnmP/TF5fMkrmYVH0I4pcd7iIdWuEIFz21Mopa7mjmVwhIujbvcsrfvy9uTRp1U4x7wZl5z0fkkhxERQ3HTkBVCAHPU4JB7aeGpDGuW3/BHj+vuU3WDvgFNQ1yXvGZRy1aXXpQiymL9dRUlc6sLg7mK/6ggN/NXivexa/iiYBmdxQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector10001;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=K972RFC11YzNQDy8cKKjIGm8W4XRo2uEviFo6gL9o8w=;
b=FcT5lAhfPLvQw70I28o/KGA6TXmWIKkXuPtVpiBOJBC5UoE96qo2EV22V+/rRG8U1R4FVl5iSARbf4RgaC4v2aelsvA/iY8xqQ9OCPfjNlFEOfpONymjGCCFLPy0LI6dO6iM1jMvCBcZu92hXG2243z9/GBZGU85gow9jH17gam4mgWwSrAJYeYFzGp9nQXiYEtk4HHF3ZoXXDResjRCOZOrhFAtQqmQNkNRh2xuBnnTnR4cmitn/XC9zJXoqoLBjl7dTG4U8N+y/NNy+/L9gQKsfbrKLQq6/kma4Ez+uEPoYRtff3EwLvhDuTxFmmiWrH8czOYy4lYKRk7+FjrPTA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass
header.d=att.com; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: apparent solution to multi-shell problem
Thread-Topic: apparent solution to multi-shell problem
Thread-Index: AdrsEwSz7row4OJsSkSHAhkPHL2CcA==
Date: Sun, 11 Aug 2024 17:22:28 +0000
Message-ID: <DM3PR02MB1025679723014178366D616E09D842@DM3PR02MB10256.namprd02.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DM3PR02MB10256:EE_|PH7PR02MB10136:EE_
x-ms-office365-filtering-correlation-id: 048ebd95-9d94-45f8-f955-08dcba2a2cc8
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018;
x-microsoft-antispam-message-info: =?iso-8859-1?Q?5aZe17XBdjYIoSh/N+UXSCNSN1SFMLKyoFS6vsx9IMOdNJUV6kDODyz5nM?=
=?iso-8859-1?Q?hzGIgHikSvD+Cgrov5ruV/ABIijsUhaeuy4b7IMwPa/RDrLcvjzP6bErY/?=
=?iso-8859-1?Q?2Z892O4NOlEZSWCcwNTLOsk3Yuw5MvVx18znL3C9KZ0+uuD3DqCIyqaXNy?=
=?iso-8859-1?Q?okXX9hibwfjiBNMdnH4PE7X/4oer0c5RyigDkmbPSwY1rPLAbUiYkBDwvF?=
=?iso-8859-1?Q?nugT5oC9K6b1UjjEoq3VRBQ3+oKEJI7ztZrL1+ag3J2yX7EpTfIX7kS/6Q?=
=?iso-8859-1?Q?UupUXapEPSpfKP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O3yo6DYhwQ0yo89FgzpPi7LiJ?=
=?iso-8859-1?Q?4jeGf7GXsFAHD7Pop8/wNvGFgHA4H50ZsGY8Y5jST+JPiCdgTDQwYJUt/e?=
=?iso-8859-1?Q?w1EpHVPfJUPuNVHk1it/URTAqOZBcBT1FvmbsYjg9fglN+M7Ju/TxURtFR?=
=?iso-8859-1?Q?4ZD+psKhbgrfVE5gK3lLG5ZG2MHwKhoItDEcp6dkvPFOjzx5uBRP9YrGiy?=
=?iso-8859-1?Q?Y1dmO6zokDMLMbCFsQ79NLtdskUE2Q8kfhHskFC0P8u1FqgOeqzo0=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM3PR02MB10256.namprd02.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?cOi1/qjjMGiBJXEMMbDaVXvSFpWs5sreZThWmsEQKztEhDV6ySv0BWTivj?=
=?iso-8859-1?Q?FUgfE6NyBVwUQdzvnpiDG2iRx/uiwcB7EsmrVv8US9SY9KctmaHJ2wf+1I?=
=?iso-8859-1?Q?oN/h7az89kgAyvkO1wf+0BIyn9sENGnjwcP4SpAMg2UejGiseN4Wjz4Nxs?=
=?iso-8859-1?Q?wlvEI+0+5c2Qwpx+JepPaXFd8uy9atroT5/wEBYgxiLBSIFVm3UVPX1wtJ?=
=?iso-8859-1?Q?QmX3PEemavC7JRwf5xrtAozOT7uAfMn8vW7W+bo5F2GrMIpuUkh/oqgsRw?=
=?iso-8859-1?Q?GxmRMaedFxSqvpzyAAlmv0/yrLR629WkHKCw9SBJlEsaymVm93i2lUvcEo?=
=?iso-8859-1?Q?SnP9xmcxXfG67NyWU2avRWNTZSIEWs2jpeDkmahEUnAqka1I6K9rHrc9G9?=
=?iso-8859-1?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ck0YxEfkRMsAMLZveeTzxtRy2kFiDjF3f?=
=?iso-8859-1?Q?6J7lUaMAcgpVumlcM3kdvEfe/OFGiKyK5s4lWyCWD6AfaFrMxxLjdl1W/w?=
=?iso-8859-1?Q?pPeozOIFbIwFhDdM61ulEXFRpp2qxeRw/Q2zLBTEtPsvQ3/b7/tDxUmCbJ?=
=?iso-8859-1?Q?Ly+OM11uDRtlRPNH6+Q2iX+0TvKJ477oWII7vjgBR2FFBAswRSL/X4nFDX?=
=?iso-8859-1?Q?o72a6xZjXctofarQiCBk5xoolllE8LeMiHRYEmr8/yrU1+gnee65HRUOGn?=
=?iso-8859-1?Q?t/Sx1o3BdckS71XpFNqBeTfEboxxqk+E7o9X8pX39uOXujcMXjgjr8ftg+?=
=?iso-8859-1?Q?Ja8e79GYpGFlA=3D?=
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM3PR02MB10256.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 048ebd95-9d94-45f8-f955-08dcba2a2cc8
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2024 17:22:28.2472 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: e741d71c-c6b6-47b0-803c-0f3b32b07556
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: S49ZKYF/YcTZgzt404UpQzKgLMQfcmabJPIi9LIwI6/FFAiKuAhAynglahjbyy/Y
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR02MB10136
X-TM-SNTS-SMTP: 3C8E6C4AB42C05A0824C0892E241B4691D0221C379CC3EBF79C126E2EEF5FE372
X-Proofpoint-GUID: V6_eGUY7zMP0nfd2Dn5YDJQwpjlwfEBR
X-Proofpoint-ORIG-GUID: V6_eGUY7zMP0nfd2Dn5YDJQwpjlwfEBR
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16
definitions=2024-08-11_16,2024-08-07_01,2024-05-17_01
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy
score=0 bulkscore=0
priorityscore=1501 clxscore=1015 impostorscore=0 malwarescore=0
mlxlogscore=440 adultscore=0 phishscore=0 lowpriorityscore=0
suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx
scancount=1 engine=8.19.0-2407110000 definitions=main-2408110131
X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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-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: "KARR, DAVID via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "KARR, DAVID" <dk068x AT att DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 47BHO6ge2315583

This is a repost with additional information. I've managed to find a fix, but I'd like to understand what happened, and perhaps clean up some ancient code.

For the last few days, I've been struggling with a problem with Cygwin Emacs after reinstalling Cygwin, which I haven't had to do for a while.

I discovered that when I create the first shell buffer, it works fine. When I create the second shell buffer, it fails with this:
------------------
   bash: cannot set terminal process group (-1): Inappropriate ioctl for device
   bash: no job control in this shell
----------------

After I got away from the computer for a while, I realized that I might be able to narrow this down.  I thought that this might be a problem with the small façade package I wrote over "shell" a few decades ago, but I realized that if I just start Emacs and manually switch to a buffer and run "shell" and then do that again, that is basically the same thing.  I found that that repeats the problem.

So then I looked at my .emacs file, and I noticed the following.  Note that this is another block of code that I haven't changed in many years. I know that several of these lines are obsolete now, even some that aren't causing my problem:
------------------
(defun my-shell-mode-hook ()
;(add-hook 'comint-output-filter-functions
;	    'shell-strip-ctrl-m nil t)
  (add-hook 'comint-output-filter-functions
	    'comint-watch-for-password-prompt nil t)
  (setq explicit-shell-file-name "bash")
  ;; For subprocesses invoked via the shell
  ;; (e.g., "shell -c command")
  (setq shell-file-name explicit-shell-file-name)
  (ansi-color-for-comint-mode-on)
  (shell-strip-ctrl-m)
  (setq shell-prompt-pattern "^\[[A-z0-9]+:[A-z0-9/]+\] ")
  (local-set-key "\C-xs" 'cycle-go-shell)
  (local-set-key "\C-xS" 'cycle-find-shell-or-shells-buffer-list)
  (local-set-key "\C-j" 'lfd-send-input)
  (local-set-key [f5] 'comint-previous-matching-input-from-input)
  (local-set-key [f12] 'compilation-shell-minor-mode)
  )
-----------------

For most of this, I can't even remember what it was for.  I tried commenting out portions of this and retesting, and I finally narrowed it down to the two sets of the related "file-name" variables. When I comment both of those out and retest, the problem doesn't occur.  I see that the new value of "shell-file-name" is "/bin/bash", instead of the "bash" value that I was hardcoding before.  Certainly less code is better than more code, especially if it works, but it would be useful to understand if something changed recently that might have caused that error.

I also briefly examined some of these other blocks, and I see that apparently "shell-strip-ctrl-m" is obsolete.  Is it best to have this?:

    (add-hook 'comint-output-filter-functions
	'comint-strip-ctrl-m nil t)


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