Re: Why does default shell prompt PS1 contain newlines (\n)?

2017-04-05 Thread Brian Inglis
On 2017-04-05 11:28, cyg Simple wrote: > On 4/5/2017 12:53 PM, "\"[[\"Dr. Matthias H. Fröhlich" wrote: >> After installing "plain vanilla" cygwin I noticed, that default >> definition of PS1 from /etc/bash.bashrc contains newline characters >> '\n': >> # Set a default prompt of: user@host and

Re: Why does default shell prompt PS1 contain newlines (\n)?

2017-04-05 Thread cyg Simple
On 4/5/2017 12:53 PM, "\"[[\"Dr. Matthias H. Fröhlich" wrote: > After installing "plain vanilla" cygwin I noticed, that default definition of > PS1 from /etc/bash.bashrc contains newline characters '\n': > # Set a default prompt of: user@host and current_directory > PS1='\[\e]0;\w\a\]\

Why does default shell prompt PS1 contain newlines (\n)?

2017-04-05 Thread "[["Dr. Matthias H. Fröhlich
After installing "plain vanilla" cygwin I noticed, that default definition of PS1 from /etc/bash.bashrc contains newline characters '\n': # Set a default prompt of: user@host and current_directory PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' This does immediately lead

Re: default shell

2014-04-25 Thread Andrey Repin
Greetings, Dawid Ferenczy! >it's not a big deal, I just wonder what to execute, if I would like to > execute user's default shell (defined in /etc/passwd). For example in > cmd.exe, > ConEmu or Console2. I don't want to hardcode a shell anywhere (in console >

default shell

2014-04-24 Thread Dawid Ferenczy
Hi, it's not a big deal, I just wonder what to execute, if I would like to execute user's default shell (defined in /etc/passwd). For example in cmd.exe, ConEmu or Console2. I don't want to hardcode a shell anywhere (in console emulator configuration, some batch file etc.),

Re: How does one change the default shell?

2010-09-03 Thread Eric Blake
On 09/03/2010 09:52 AM, Paul McFerrin wrote: How about the obviousChange the shell listed in the /etc/passwd file for the affected user. I for years had pdksh as my default shell. Yes, I was a long time AT&Ter, where the ksh was invented. Quit top-posting, and http://cygwin.com/acro

Re: How does one change the default shell?

2010-09-03 Thread Dave "No, not /that/ one!" Korn
On 02/09/2010 23:29, risin...@nationwide. wrote: > I use pdksh as my login shell - I have been using the Korn shell (thanks > Dave!) See From: header! cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

Re: How does one change the default shell?

2010-09-02 Thread Andy Koppe
On 2 September 2010 23:49, RISINGP1 wrote: > My cygwin.bat: > > @echo off > > C: > chdir C:\cygwin\bin > > REM bash --login -i > REM pdksh -l -i > start mintty -p 70,0 -t Console -e - Btw, you don't need cygwin.bat to start mintty; you can just put those parameters into a shortcut (or copy the one

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
> > Ah, so you mean how to change /bin/sh to be pdksh instead of bash. Simple: > > > > cp /bin/{pdk,}sh > > > > But be prepared to redo that every time you upgrade bash via setup.exe, > > and don't come crying to the list if things break that were expecting > > bash when they got pdksh. Thanks

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
work. >> >> Is there a way to change the default shell for cygwin? I checked the user >> guide and the FAQ, but no joy there. I tried setting and exporting the >> SHELL variable, but that did not work. > >Assuming you meant the default shell for your particular use

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
On 09/02/2010 04:49 PM, risin...@nationwide.com wrote: write a script, I have to remember to put in the shebang line (#!/bin/pdksh) or half the time my scripts won't work. Is there a way to change the default shell for cygwin? I checked the user guide and the FAQ, but no joy there. I

Re: How does one change the default shell?

2010-09-02 Thread RISINGP1
expedite >> script writing, I use the ksh language and features Every time that I >> write a script, I have to remember to put in the shebang line >> (#!/bin/pdksh) or half the time my scripts won't work. >> >> Is there a way to change the default shell for cygwin

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
On 09/02/2010 04:29 PM, risin...@nationwide.com wrote: I use pdksh as my login shell - I have been using the Korn shell (thanks Dave!) since 1984 or so, so it is what I am used to and has features I haven't been able to find in bash - at least not yet. So to expedite script writing, I use the ks

Re: How does one change the default shell?

2010-09-02 Thread Eric Blake
e the ksh language and features Every time that I write a script, I have to remember to put in the shebang line (#!/bin/pdksh) or half the time my scripts won't work. Is there a way to change the default shell for cygwin? I checked the user guide and the FAQ, but no joy there. I tried s

How does one change the default shell?

2010-09-02 Thread RISINGP1
ite a script, I have to remember to put in the shebang line (#!/bin/pdksh) or half the time my scripts won't work. Is there a way to change the default shell for cygwin? I checked the user guide and the FAQ, but no joy there. I tried setting and exporting the SHELL variable, but that di

Re: default shell cannot be changed from bash to tcsh

2003-07-10 Thread Igor Pechtchanski
On Fri, 11 Jul 2003, Alireza Moini wrote: > I cannot seem to change the default shell from bash to > tcsh, despite changing the entry in passwd. > > I have attached the cygcheck -svr and passwd entry. > ali:unused_by_nt/2000/xp:1000:513:MY > NAME,U-ALI-WORK-PC\ali,S-

default shell cannot be changed from bash to tcsh

2003-07-10 Thread Alireza Moini
I cannot seem to change the default shell from bash to tcsh, despite changing the entry in passwd. I have attached the cygcheck -svr and passwd entry. ali:unused_by_nt/2000/xp:1000:513:MY NAME,U-ALI-WORK-PC\ali,S-xxx-1000:/home/ali:/usr/bin/tcsh Also even when using bash the /etc

Re: problem with setting up tcsh as default shell

2002-10-22 Thread mike parks
- Original Message - From: "Igor Pechtchanski" <[EMAIL PROTECTED]> To: "mike parks" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 7:58 AM Subject: Re: problem with setting up tcsh as default shell > On Tue, 22 Oct 2002, mike

Re: problem with setting up tcsh as default shell

2002-10-22 Thread Igor Pechtchanski
On Tue, 22 Oct 2002, mike parks wrote: > hi, > > i am having trouble setting tcsh as my default shell. cygwin does not > seem to pick up the settings in the .tcshrc from my $HOME directory. > > i started with the default profile and csh.cshrc files that came with > the c

problem with setting up tcsh as default shell

2002-10-21 Thread mike parks
hi, i am having trouble setting tcsh as my default shell. cygwin does not seem to pick up the settings in the .tcshrc from my $HOME directory. i started with the default profile and csh.cshrc files that came with the cygwin download. i noticed that cygwin seemed to start the bash shell from

Re: Problems using tcsh as default shell

2002-02-21 Thread Michael A Chase
- Original Message - From: "Martin Nilsson (ERV)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 07:02 Subject: Problems using tcsh as default shell > I have a problem with tcsh when using it as the default shell for cygwin.

Problems using tcsh as default shell

2002-02-21 Thread Martin Nilsson (ERV)
Hello I have a problem with tcsh when using it as the default shell for cygwin. I have replaced the bash command line in cygwin.bat with tcsh -l and now my cygwin.bat have the following content: @echo off C: cd \cygwin\bin tcsh -l tcsh does not seem to have any problem reading my