* Entering Cygwin command line (bash login) from Windows cmd.exe ? @ 2023-07-29 4:18 Roland Mainz 2023-08-07 4:02 ` Roland Mainz 0 siblings, 1 reply; 11+ messages in thread From: Roland Mainz @ 2023-07-29 4:18 UTC (permalink / raw) To: cygwin; +Cc: Roland Mainz Hi! ---- 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... ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-07-29 4:18 Entering Cygwin command line (bash login) from Windows cmd.exe ? Roland Mainz @ 2023-08-07 4:02 ` Roland Mainz 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Roland Mainz @ 2023-08-07 4:02 UTC (permalink / raw) To: cygwin; +Cc: Roland Mainz On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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! ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) ^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-07 4:02 ` Roland Mainz @ 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) 2023-08-12 22:52 ` Roland Mainz 2023-08-07 17:39 ` Lee 2023-08-08 7:01 ` Thomas Wolff 2 siblings, 1 reply; 11+ messages in thread From: KAVALAGIOS Panagiotis (EEAS) @ 2023-08-07 5:38 UTC (permalink / raw) To: cygwin > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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. Panos ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) @ 2023-08-12 22:52 ` Roland Mainz 2023-08-13 14:04 ` Jon Turney 2023-08-13 17:40 ` Martin Wege 0 siblings, 2 replies; 11+ messages in thread From: Roland Mainz @ 2023-08-12 22:52 UTC (permalink / raw) To: cygwin On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin <cygwin@cygwin.com> wrote: > > > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-12 22:52 ` Roland Mainz @ 2023-08-13 14:04 ` Jon Turney 2023-08-13 17:40 ` Martin Wege 1 sibling, 0 replies; 11+ messages in thread From: Jon Turney @ 2023-08-13 14:04 UTC (permalink / raw) To: Roland Mainz, The Cygwin Mailing List On 12/08/2023 23:52, Roland Mainz via Cygwin wrote: > Roland > > P.S.: Which reminds me - is there a way to contribute a Cygwin ksh93 package ? https://cygwin.com/packaging-contributors-guide.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-12 22:52 ` Roland Mainz 2023-08-13 14:04 ` Jon Turney @ 2023-08-13 17:40 ` Martin Wege 2023-08-14 7:35 ` Brian Inglis 1 sibling, 1 reply; 11+ messages in thread From: Martin Wege @ 2023-08-13 17:40 UTC (permalink / raw) Cc: cygwin On Sun, Aug 13, 2023 at 12:53 AM Roland Mainz via Cygwin <cygwin@cygwin.com> wrote: > > On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin > <cygwin@cygwin.com> wrote: > > > > > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-13 17:40 ` Martin Wege @ 2023-08-14 7:35 ` Brian Inglis 2023-08-14 9:04 ` Martin Wege 0 siblings, 1 reply; 11+ messages in thread From: Brian Inglis @ 2023-08-14 7:35 UTC (permalink / raw) To: cygwin; +Cc: Martin Wege 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 POSIX only standardizes the POSIX shell sh (install man-pages-posix for docs). Cygwin provides the dash POSIX compatible shell preinstalled as a base package. Each shell provides its own builtins which may be similar, or have differnet names, and sufficient differences, to keep shell programmers in a job. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-14 7:35 ` Brian Inglis @ 2023-08-14 9:04 ` Martin Wege 0 siblings, 0 replies; 11+ messages in thread From: Martin Wege @ 2023-08-14 9:04 UTC (permalink / raw) To: cygwin On Mon, Aug 14, 2023 at 9:35 AM Brian Inglis <Brian.Inglis@shaw.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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-07 4:02 ` Roland Mainz 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) @ 2023-08-07 17:39 ` Lee 2023-08-08 7:01 ` Thomas Wolff 2 siblings, 0 replies; 11+ messages in thread From: Lee @ 2023-08-07 17:39 UTC (permalink / raw) To: Roland Mainz; +Cc: cygwin, Roland Mainz On 8/7/23, Roland Mainz 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... > > ping! Years ago this was the default way to start cygwin (I don't think I've changed it, but who knows??) C:\cygwin>type Cygwin.bat @echo off C: chdir C:\cygwin\bin bash --login -i There's a Cygwin.bat in /etc/defaults that needs to be copied to the cygwin root directory: C:\cygwin>type etc\defaults\Cygwin.bat @echo off setlocal enableextensions set TERM= cd /d "%~dp0bin" && .\bash --login -i C:\cygwin> "cd /d" - Use the /D switch to change current drive in addition to changing current directory for a drive. "%~dp0" gives the path of the script, so if the .bat file is in C:\cygwin then "%~dp0bin" expands to C:\cygwin\bin Regards Lee ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-07 4:02 ` Roland Mainz 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) 2023-08-07 17:39 ` Lee @ 2023-08-08 7:01 ` Thomas Wolff 2023-08-08 15:44 ` ASSI 2 siblings, 1 reply; 11+ messages in thread From: Thomas Wolff @ 2023-08-08 7:01 UTC (permalink / raw) To: cygwin Am 07.08.2023 um 06:02 schrieb Roland Mainz via Cygwin: > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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... On the other hand, you could also stop the Windows ssh server, start the cygwin ssh server, to arrive in a cygwin shell directly. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Entering Cygwin command line (bash login) from Windows cmd.exe ? 2023-08-08 7:01 ` Thomas Wolff @ 2023-08-08 15:44 ` ASSI 0 siblings, 0 replies; 11+ messages in thread From: ASSI @ 2023-08-08 15:44 UTC (permalink / raw) To: cygwin Thomas Wolff via Cygwin writes: > Am 07.08.2023 um 06:02 schrieb Roland Mainz via Cygwin: >> On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz <roland.mainz@nrubsig.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... > On the other hand, you could also stop the Windows ssh server, start > the cygwin ssh server, to arrive in a cygwin shell directly. Or just run the Cygwin SSH server on a different port (don't forget to open it in the Firewall) and have it both ways. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2023-08-14 9:04 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-07-29 4:18 Entering Cygwin command line (bash login) from Windows cmd.exe ? Roland Mainz 2023-08-07 4:02 ` Roland Mainz 2023-08-07 5:38 ` KAVALAGIOS Panagiotis (EEAS) 2023-08-12 22:52 ` Roland Mainz 2023-08-13 14:04 ` Jon Turney 2023-08-13 17:40 ` Martin Wege 2023-08-14 7:35 ` Brian Inglis 2023-08-14 9:04 ` Martin Wege 2023-08-07 17:39 ` Lee 2023-08-08 7:01 ` Thomas Wolff 2023-08-08 15:44 ` ASSI
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).