jcjordyn140 / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Launching from Run... does not produce a stand-alone login shell #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the Run... dialog
2. Enter C:\cygwin\bin\mintty.exe
3. Hit OK

What is the expected output? What do you see instead?
I expect a stand-alone login shell similar to executing mintty from a Bash
prompt.  Instead is a confused environment.

What version of the product are you using? On what operating system?
0.3.5.  Win2K

Please provide any additional information below.
Here is the output of the new window:
c:\Program Files\AdminTools\Resource Kit\sed.exe: can't read
/etc/bash_completion: No such file or directory
bash-3.2$

Ultimately, I'd like to be able to bind mintty to a key in Windows for
quick launching.  Presently I need to start a Cygwin shell, then run mintty
from inside that.  And then the parent Bash shell does not close its Window
on exit -- I need to manually close the window with [X] button.

Providing a -l or --login flag (or something similar) would be helpful to
provide the desired behavior.

Original issue reported on code.google.com by b.k.ox...@gmail.com on 29 Jan 2009 at 1:43

GoogleCodeExporter commented 9 years ago
Perhaps this is an enhancement rather than a defect.

Original comment by b.k.ox...@gmail.com on 29 Jan 2009 at 1:44

GoogleCodeExporter commented 9 years ago
Invoke mintty with '-' (a single minus sign) as argument to invoke your default 
shell
as a login shell. Alternatively, '/bin/bash -l' would do too. See 'mintty 
--help' for
other command line options.

Original comment by andy.koppe on 29 Jan 2009 at 6:35

GoogleCodeExporter commented 9 years ago
Please change this to a documentation complaint.  The dash argument works 
great.  But
I did not easily find this in the documentation when I first searched for yet 
(before
filing this report).  You are right that I did not see the description in the 
--help
text.  I did look, though.  If the "Options:" list included the "-" flag in the 
list,
that would have aided me.

Original comment by b.k.ox...@gmail.com on 30 Jan 2009 at 3:51

GoogleCodeExporter commented 9 years ago
Fair points. A manpage is in the works for 0.3.6.

How about including the dash like this in the help output? (It isn't an option 
as
such, because it has to be the last argument.)

  Usage: mintty [OPTION]... [- | COMMAND [ARGS]...]

Original comment by andy.koppe on 30 Jan 2009 at 6:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Changed usage message in r149 on 0.3 branch.

Original comment by andy.koppe on 7 Feb 2009 at 10:59

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 14 Mar 2009 at 2:53

GoogleCodeExporter commented 9 years ago
Much improved -- thanks!

Original comment by b.k.ox...@gmail.com on 17 Mar 2009 at 1:53