X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D0E73858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1691998520; bh=nrHCw+y9FeFFVD4UEXH0ckDpeHuZfI7gU/xXlO6M5jo=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pm9nIULH8FzcQdXcTYm3DWHvewJEVZU9/KGqIOKB7g+0bPeVVSW0kRX+QVrxwSrdH 7T+Wm0h2DMWIIAyQKqVKLsmuidAmDhyshXQKHpweCdFc0gq8fzDQfU/r9EgmLLYyQ4 BRIxAY+nfbOWGC5xPgFqgBlg5jaWDLJcknnzisio= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DA323858D39 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 Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? Content-Language: en-CA To: cygwin AT cygwin DOT com References: <6bb84c12a70e4120a7d916e58c351c99 AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> Organization: Inglis In-Reply-To: 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , Martin Wege Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 37E7ZKvV018123 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 -- 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