From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by sourceware.org (Postfix) with ESMTPS id 5FEFD3858D39 for ; Mon, 14 Aug 2023 09:04:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FEFD3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1bb575a6ed3so3282900fac.2 for ; Mon, 14 Aug 2023 02:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692003851; x=1692608651; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WeLN9ELa64+YwfVM3TaxmDkxiW1LXQJw90q+JluSgq8=; b=Ns9cJzuu6HvD7kurrM/Gi7Opto5GQLr8QZLNNCWdl6/DLolakizdhpZANS2MiQc4xc xWex4xPrzZ2+TAgcM23HDNonyZ26A/Y+TGQOKtGDj0xecGOkVTryhAK06lvX8atWJA7q 9cBjDIVFLVI89rWdZygd66k1TYXAt0eEHdX8SQsyR6+pIJD+JA0GnY8X9D0GZNwe21OI br4489/QlUv08dY7iTZWPeehqVoWRukBhROZk5hZOBB8B4mISBv9fbiS89rVbybWIoer BbamrTQy2wX5q0rlCesG0r+0VdCJC0TubqsaiqFzwOqJFWEa8XNp52+I050gpX7gXtjd WrNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692003851; x=1692608651; 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=WeLN9ELa64+YwfVM3TaxmDkxiW1LXQJw90q+JluSgq8=; b=Clm9Y0TsrzIQPAn+SrhvFjh+DRLaULCzp07jSquQGscKFC5aQVCVg778sH6lTiMRdD w1JKI+DQFnTwrmZ4KRCXtGex1HhLMa60I0r+satyXYz2Q6kwc+E3zdWc/CitqAtYD5BK CYlOPk6xoKbxqG0zbSyGrJIcLzjqqdMaOJZKt3gq4UtTIo5wMbhqOUaxc1GLErkEqAKA 51rjxs5N4aJW4rIbwgRFb01QgNh1woEQjiA8Zyp7fOKfLbxjXZHZRyjhZ5Ud3kPhJ/vS Oq6x0Lu41JqtprFDHdMCJaYKWzJw3ujp7qopeEM1VaK/oTNsQErexOu1XUz8LzhQgidV dkww== X-Gm-Message-State: AOJu0Yy8DXyQ3kCtu05d+hVqwrslPL+1DjMnM4A10obyX2vI/RvSIQkE WaHQ9FV40ejYS6p5ZaHUoFnA1QG4VjJrFnlpw2eKS0i5R78= X-Google-Smtp-Source: AGHT+IF5Ml8WpmoMSXIMDp3f/HvWudvLjc2zfS7xyOLd+o+89sH0Kay5LmYE5JE+ELKexufWAdGXHKAlRQMw07EgIxk= X-Received: by 2002:a05:6870:15d5:b0:1be:c7e2:fe1 with SMTP id k21-20020a05687015d500b001bec7e20fe1mr9587791oad.41.1692003851425; Mon, 14 Aug 2023 02:04:11 -0700 (PDT) MIME-Version: 1.0 References: <6bb84c12a70e4120a7d916e58c351c99@BELBRU-EXMP101.eeas.europa.eu> In-Reply-To: From: Martin Wege Date: Mon, 14 Aug 2023 11:04:00 +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=0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 List-Id: On Mon, Aug 14, 2023 at 9:35=E2=80=AFAM Brian Inglis = wrote: > > On 2023-08-13 11:40, Martin Wege via Cygwin wrote: > > On Sun, Aug 13, 2023 at 12:53=E2=80=AFAM Roland Mainz via Cygwin wrote: > >> On Mon, Aug 7, 2023 at 7:38=E2=80=AFAM KAVALAGIOS Panagiotis (EEAS) vi= a Cygwin 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. bas= h > >>>>> 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 Cygwi= n installation: > >>> "C:\Program Files\Cygwin\bin\bash.exe" > >>> "C:\Program Files\Cygwin\bin\tcsh.exe" > >>> replace " C:\Program Files" with your target Cygwin installation dire= ctory 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 p= ackage ? > > > 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 I know about that, but it has only ksh88 compatibility. What would be great is the real ksh93, with IEEE754-style floating point math, compound variables, and regex with ~(X) (egrep with logical AND), ~(E), .sh.match pattern matching facilities. Thanks, Martin