delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/13/13:40:40

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07145385840B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1691948439;
bh=6hejrO8+3lAN1yb97ip89pXlzAK/+vnu8jjgQF6U2Bc=;
h=References:In-Reply-To:Date:Subject:Cc:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=H3Ckwb5ROe+koq6wh7/d05i4f8t8MolX64gdrAeY40Mmbo3OZP9iY4u053PEmi+Ns
EejWs/WXOFSN+l0R4TDcqoWcWTr0h4F8W2GSVZFFoh4gZk+6cC7x7l/ItJ88B/3tyd
sjmfL6v+3HRmeTTZMlZh8pUZS3vqSa4kbigT3gYA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A75CC3858D32
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1691948423; x=1692553223;
h=content-transfer-encoding:cc: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=cbuchMCGT4mZF1mm9sg39A5b9DknS1KjXHWlk0PfL9o=;
b=AuVHJQX3OnXgs88xtY6mUDEs+rVJxo/a3kgyg5umED+r5vDOIt2tzYKl0Z0qLzFR7x
LE4bM12wd8OImqNXtn/ZNzy8o9JDoY8ceUIlfx7oorgwifm7dG0EIUm9Dzar4uhkQM2d
uH/BkDSGph3LizqOYY1s70wt2HQHC392x3XB3KbSzRH13gAji9eMPi9cRUA9tRGSPsXc
MzHfsak0fnRf9oGexMTDIx2OR8kFaXCRgb/ZLi1JkyFzYH/RG00CPcslczlpRtkxvr8h
vOJU1HBQvC7l+zEAZgZ64ozRyiuYFmT9IiiMSPEHQvRGqy2rxFlpl0mocND19/6vOQru
em0A==
X-Gm-Message-State: AOJu0YzB50crF1g7OuBINE8KkOGUYkFKwZ42mptgMLMqad5bFfqTuKTK
EqHdgFIt6ltXQCnevl1zcD0j5U3fb+AQfJX0sgw+AVXB
X-Google-Smtp-Source: AGHT+IGtQtMQc9ShhqzTHaS29ItHnhtQQLvJ2tkRlQeALY3Cf3WYwaO9dyvIBdVqsKJ4r0GuiXhwlUn/hMa97GonJwQ=
X-Received: by 2002:a05:6870:2481:b0:1bb:7825:636b with SMTP id
s1-20020a056870248100b001bb7825636bmr6188011oaq.9.1691948422824; Sun, 13 Aug
2023 10:40:22 -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>
<CAKAoaQkueLrtg4_jHVZS3yES2dN6VQiFco2HTFKcyJ7m5aXneQ AT mail DOT gmail DOT com>
In-Reply-To: <CAKAoaQkueLrtg4_jHVZS3yES2dN6VQiFco2HTFKcyJ7m5aXneQ@mail.gmail.com>
Date: Sun, 13 Aug 2023 19:40:00 +0200
Message-ID: <CANH4o6NBZwGGsqtS_79d0Hpf0r3ZnSNQu46EtCKEkX4KreNU+A@mail.gmail.com>
Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, MISSING_HEADERS,
RCVD_IN_DNSWL_NONE, 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: Martin Wege via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Martin Wege <martin DOT l DOT wege AT gmail 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 37DHee0P031606

On Sun, Aug 13, 2023 at 12:53 AM Roland Mainz via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> 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 ?

We would greatly appreciate a Korn Shell 93 package, preferably with
some POSIX builtin commands.

Thanks,
Martin

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