delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/14/03:35:21

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: <c084d815-9c5e-f8a4-e775-008cd56de99a@Shaw.ca>
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 ?
To: cygwin AT cygwin DOT com
References: <CAKAoaQmiHtb_Ur9Dw+v6E+MbVn5jKDkD3D_bK6XKD9sbv5eqEw AT mail DOT gmail DOT com>
<CAKAoaQmOLZihK6aiQR1tOew60gGRYpF3iCVNBT9pBfga2gVWLw AT mail DOT gmail DOT com>
<6bb84c12a70e4120a7d916e58c351c99 AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu>
<CAKAoaQkueLrtg4_jHVZS3yES2dN6VQiFco2HTFKcyJ7m5aXneQ AT mail DOT gmail DOT com>
<CANH4o6NBZwGGsqtS_79d0Hpf0r3ZnSNQu46EtCKEkX4KreNU+A AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CANH4o6NBZwGGsqtS_79d0Hpf0r3ZnSNQu46EtCKEkX4KreNU+A@mail.gmail.com>
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
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>, Martin Wege <martin DOT l DOT wege AT gmail DOT com>
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>
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

- Raw text -


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