From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 7DA323858D39 for ; Mon, 14 Aug 2023 07:35:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DA323858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id VFxWqwBh26NwhVS6RqPev1; Mon, 14 Aug 2023 07:35:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1691998503; bh=dBFTLhgFQtuYdZgbGDl+H7aYFcyodqKBGuwGYv16XRc=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To; b=v9NHngjF89XjMcIMhIeuh9UuFbbKzbNsQSdqVjqHQirAVgs6EUl/wgp71ZOs6dz44 h+rfNkjP3Vol3h3dD608NOvUdIYXSQDZFYb+R8EtSryzAgF+g5a/eXEVQJ+xARROux Rkf6+ggZzvsrKcAFSnC5kqBvYqkLOqVHJ7thqst9eNhGlQZeazZDtwjTHSN8HaA4IK a1S7lxVF1wpymWqueQ0c1paUD/OgVXh1hcWmFkZdY96NJ3gyOKb/K2wRsJnYUjmCUk j7CfzhutmxXES4L1EwGmOC99UOOoUHjP1QdVWiN7m0g9xp+IaZ6e3ab3eRQCVm4wEj LQqpbtDtQTrZQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id VS6QqxM2ncyvuVS6RqLviC; Mon, 14 Aug 2023 07:35:03 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=64d9d927 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=dZWDI_pZkdebtNzfowAA:9 a=QEXdDO2ut3YA:10 a=nJk2uhrdEJ4A:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: Date: Mon, 14 Aug 2023 01:35:02 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Reply-To: cygwin@cygwin.com Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? Content-Language: en-CA To: cygwin@cygwin.com Cc: Martin Wege References: <6bb84c12a70e4120a7d916e58c351c99@BELBRU-EXMP101.eeas.europa.eu> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfBYXUJSqOhw+G4RojFTH2KbW9BdVrQ01hXNpLPD/mICMQ04s6taU1MlEH1aFT9okTNd6Dp8krqexhtJ+Aw2Fb7+Qf4NRlbbCYepWyEQY7QEn27+LNWtJ Q/poqyLmUf1mB07u6U/4BNk20u2gFh855/ssjyI3m5cm72b4Yd1r11jtf2Ck3W1aC38bsKRS5CWxZWF2/qa6FetoaWWAD4TZ+tm8YftfnsXQek2GKEMuBNlU X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-08-13 11:40, Martin Wege via Cygwin wrote: > On Sun, Aug 13, 2023 at 12:53 AM Roland Mainz via Cygwin wrote: >> On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin wrote: >>>> On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: >>>>> Is there an official way to enter the Cygwin command line (e.g. bash >>>>> login) from Windows cmd.exe, e.g. if someone ssh's into a Windows >>>>> machine he/she ends/up in a cmd.exe and not bash... >>> You may run your favourite shell from the bin directory of your Cygwin installation: >>> "C:\Program Files\Cygwin\bin\bash.exe" >>> "C:\Program Files\Cygwin\bin\tcsh.exe" >>> replace " C:\Program Files" with your target Cygwin installation directory root. >> Turns out my problem was simply that I forgot that just typing "bash" >> only gives me an interactive shell, which sources only the interactive >> shell configs (e.g. /etc/ksh.kshrc + ~/.kshrc for ksh93, and >> /etc/bash.bashrc + ~/.bashrc for bash), but not the login configs >> (e.g. /etc/profile + ~/.profile). >> So the simple fix was just to type: >> C:\Program Files\Cygwin\bin\bash.exe --login >> or >> C:\Program Files\Cygwin\bin\ksh93.exe --login >> P.S.: Which reminds me - is there a way to contribute a Cygwin ksh93 package ? > We would greatly appreciate a Korn Shell 93 package, preferably with > some POSIX builtin commands. $ cygcheck -p Korn Found 6 matches for Korn mksh-53a-1-src - mksh-src: MirBSD Korn Shell (source) mksh-54-1-src - mksh-src: MirBSD Korn Shell (source) mksh-56c-1-src - mksh-src: MirBSD Korn Shell (source) mksh-53a-1 - mksh: MirBSD Korn Shell mksh-54-1 - mksh: MirBSD Korn Shell mksh-56c-1 - mksh: MirBSD Korn Shell https://cygwin.com/packages/summary/mksh-src.html POSIX only standardizes the POSIX shell sh (install man-pages-posix for docs). Cygwin provides the dash POSIX compatible shell preinstalled as a base package. Each shell provides its own builtins which may be similar, or have differnet names, and sufficient differences, to keep shell programmers in a job. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry