From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by sourceware.org (Postfix) with ESMTPS id 7E0C23858D37 for ; Sat, 12 Aug 2023 22:52:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E0C23858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-790c6d966e0so133477839f.0 for ; Sat, 12 Aug 2023 15:52:34 -0700 (PDT) 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: <6bb84c12a70e4120a7d916e58c351c99@BELBRU-EXMP101.eeas.europa.eu> In-Reply-To: <6bb84c12a70e4120a7d916e58c351c99@BELBRU-EXMP101.eeas.europa.eu> From: Roland Mainz Date: Sun, 13 Aug 2023 00:52:07 +0200 Message-ID: Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? To: "cygwin@cygwin.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: On Mon, Aug 7, 2023 at 7:38=E2=80=AFAM KAVALAGIOS Panagiotis (EEAS) via Cyg= win wrote: > > > On Sat, Jul 29, 2023 at 6:18=E2=80=AFAM 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... > > > > ping! > > You may run your favourite shell from the bin directory of your Cygwin in= stallation: > > "C:\Program Files\Cygwin\bin\bash.exe" > "C:\Program Files\Cygwin\bin\tcsh.exe" > > replace " C:\Program Files" with your target Cygwin installation director= y 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 packag= e ? --=20 __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)