delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/14/05:05:06

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A5EA385841A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1692003905;
bh=pQCKbRtJPQ3TPYEdM9ZUkDG9lSqO+oVWsgVZUztxc2U=;
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=mBIDgfrp0Q7EPUVkFc/ASpoiFFtifKMwqkK2k8gsBEiyB53H10mliF3S19zkph1h6
CfUpyXeflZVQUPDoi2V9B+oR5TWUy151ElLl+91Ei9HIwKvYESnbcoxiOEW9hQANNf
7POhRnp17GOpfi6ondA0fQmEAhgJtI+X32WEeuhk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FEFD3858D39
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: <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>
<c084d815-9c5e-f8a4-e775-008cd56de99a AT Shaw DOT ca>
In-Reply-To: <c084d815-9c5e-f8a4-e775-008cd56de99a@Shaw.ca>
Date: Mon, 14 Aug 2023 11:04:00 +0200
Message-ID: <CANH4o6NCSUhN6N73+gX=L_sNGS4DwA1iC05gjnL7X=vTQVgx3g@mail.gmail.com>
Subject: Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?
To: cygwin AT cygwin DOT com
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
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 37E956BD008919

On Mon, Aug 14, 2023 at 9:35 AM Brian Inglis <Brian DOT Inglis AT shaw DOT ca> wrote:
>
> 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

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

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