delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/12/18:52:50

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6388F3858C74
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1691880769;
bh=omyvhlNR3PePAGjI3uWKbV8HKDKQkrRmUNuQUR/5NF8=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=Svst2XPeB5H5XDLimJ+czu0yyQ0qRHOBL5zgDHTElemPw6Duf8+mY5UEq/iL4N76s
qsFN23M6vOo5WSI/wSgB/Vi6vzDgjsMTLNGFqjn2wMupDEM2zSGHEuhFCGvNCiGsBV
w+WrPm1BMV2LqiPzTcVXiRgaDDQM65UGQd3z4sAk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E0C23858D37
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1691880753; x=1692485553;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=mP4xu14Z6L1aaToc/PdBhsmSKUonTUiWT7HD38NklDM=;
b=E0WtcQxIEvI/zf/mu82/Xh9IbGqQTncpacMvRw576vzZk/jUWw5G9KR43GRe7HKSdN
OQ0LsC5GSrm3J+j+FRnPYZi8K3pOrQIe5VdbQaRafoHtI+4wSOC/hZExTLGRPqpWTvel
yZ6RAx3UTuRuuK+/55cBGqCh3dYwHfKQgAUbnA78Y7WLPC2Z8IfSlDQMfaGvTWM5pHMA
V+ZB20BljpZDgnw4Y53rFfEW3cgJw1UDN2SvdyHV8nk7HX3fouxdPwjH4fTw4SUuAFi2
LKHRQM508iqTpPLZFxK6duxTSmkJOZdwI+ZaIUiXcSskBNAa4Y5L8ZQpglSSfwOeG8MC
vnSw==
X-Gm-Message-State: AOJu0Yx4yJiN3DWPXmtweoiBKXMOaU3uX0G9LHU8hLie+kUji7hpK5Kh
tbUOgoVHiJOrEpnxwqqCbC8/fgeQh2trMer4xUbWw0Vf304=
X-Google-Smtp-Source: AGHT+IGbRNtMfJtJtXDcDbBcc3eAXDvpJl7ODXdEFhyHHHtx0ZP5z8f469XPF1OXd7O1dISztz/9tbhhLZmBYjhzM/4=
X-Received: by 2002:a5e:8804:0:b0:786:7389:51d7 with SMTP id
l4-20020a5e8804000000b00786738951d7mr9286154ioj.5.1691880753560; Sat, 12 Aug
2023 15:52:33 -0700 (PDT)
MIME-Version: 1.0
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>
In-Reply-To: <6bb84c12a70e4120a7d916e58c351c99@BELBRU-EXMP101.eeas.europa.eu>
Date: Sun, 13 Aug 2023 00:52:07 +0200
Message-ID: <CAKAoaQkueLrtg4_jHVZS3yES2dN6VQiFco2HTFKcyJ7m5aXneQ@mail.gmail.com>
Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,
FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,
KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=no 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-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: Roland Mainz via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Roland Mainz <roland DOT mainz AT nrubsig DOT org>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 37CMqoTm018553

On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland DOT mainz AT nrubsig DOT org>
> > 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...
> >
> > ping!
>
> 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.

Thanks ;-)

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

----

Bye,
Roland

P.S.: Which reminds me - is there a way to contribute a Cygwin ksh93 package ?
-- 
  __ .  . __
 (o.\ \/ /.o) roland DOT mainz AT nrubsig DOT org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

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