public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Starting from a Windows Command Prompt
@ 2017-07-12  6:16 Ugly Leper
  2017-07-12 10:20 ` Andrey Repin
  2017-07-12 18:28 ` Brian Inglis
  0 siblings, 2 replies; 5+ messages in thread
From: Ugly Leper @ 2017-07-12  6:16 UTC (permalink / raw)
  To: cygwin

Starting from a Windows Command Prompt, and using a syntax recommended
from years ago I still start a bash shell with
start /wait bin\bash (i.e. not just bin\bash)
and a mintty shell with
start bin\mintty (i.e. not just bin\mintty)
and yet experiment shows that both simplified forms in brackets "work".
Am I gaining / losing anything by sticking with the older longer
syntax, or can I just dive in, as in brackets?
Thank you!

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Starting from a Windows Command Prompt
  2017-07-12  6:16 Starting from a Windows Command Prompt Ugly Leper
@ 2017-07-12 10:20 ` Andrey Repin
  2017-07-12 18:28 ` Brian Inglis
  1 sibling, 0 replies; 5+ messages in thread
From: Andrey Repin @ 2017-07-12 10:20 UTC (permalink / raw)
  To: Ugly Leper, cygwin

Greetings, Ugly Leper!

> Starting from a Windows Command Prompt, and using a syntax recommended
> from years ago I still start a bash shell with
> start /wait bin\bash (i.e. not just bin\bash)
> and a mintty shell with

mintty is not a shell, it's a terminal emulator.

> start bin\mintty (i.e. not just bin\mintty)
> and yet experiment shows that both simplified forms in brackets "work".
> Am I gaining / losing anything by sticking with the older longer
> syntax, or can I just dive in, as in brackets?

There's no gain or lose, it all depends on where and why you are using START.
If it's from a shortcut, then both is just a waste of resources.


-- 
With best regards,
Andrey Repin
Wednesday, July 12, 2017 13:04:31

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Starting from a Windows Command Prompt
  2017-07-12  6:16 Starting from a Windows Command Prompt Ugly Leper
  2017-07-12 10:20 ` Andrey Repin
@ 2017-07-12 18:28 ` Brian Inglis
  2017-07-12 20:20   ` Andrey Repin
  1 sibling, 1 reply; 5+ messages in thread
From: Brian Inglis @ 2017-07-12 18:28 UTC (permalink / raw)
  To: cygwin

On 2017-07-12 00:16, Ugly Leper wrote:
> Starting from a Windows Command Prompt, and using a syntax recommended
> from years ago I still start a bash shell with
> start /wait bin\bash (i.e. not just bin\bash)
> and a mintty shell with
> start bin\mintty (i.e. not just bin\mintty)
> and yet experiment shows that both simplified forms in brackets "work".
> Am I gaining / losing anything by sticking with the older longer
> syntax, or can I just dive in, as in brackets?

Running with start, like cygstart, spawns a separate window process for the
program, as does running mintty with or without start or cygstart.
The difference with bash and start /wait is you currently keep a cmd shell
window hanging around rather than running bash as a subshell in your cmd window.

Why not take advantage of Windows, and pin Cygwin shortcuts to your Start Menu
and/or Taskbar, so you can more easily start mintty or bash in their own windows
with just a click, almost like a real Unix X Window environment? ;^>

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Starting from a Windows Command Prompt
  2017-07-12 18:28 ` Brian Inglis
@ 2017-07-12 20:20   ` Andrey Repin
  2017-07-12 23:25     ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: Andrey Repin @ 2017-07-12 20:20 UTC (permalink / raw)
  To: Brian Inglis, cygwin

Greetings, Brian Inglis!

> On 2017-07-12 00:16, Ugly Leper wrote:
>> Starting from a Windows Command Prompt, and using a syntax recommended
>> from years ago I still start a bash shell with
>> start /wait bin\bash (i.e. not just bin\bash)
>> and a mintty shell with
>> start bin\mintty (i.e. not just bin\mintty)
>> and yet experiment shows that both simplified forms in brackets "work".
>> Am I gaining / losing anything by sticking with the older longer
>> syntax, or can I just dive in, as in brackets?

> Running with start, like cygstart, spawns a separate window process

Not necessarily.
Ref: START /B


-- 
With best regards,
Andrey Repin
Wednesday, July 12, 2017 23:14:46

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Starting from a Windows Command Prompt
  2017-07-12 20:20   ` Andrey Repin
@ 2017-07-12 23:25     ` Brian Inglis
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Inglis @ 2017-07-12 23:25 UTC (permalink / raw)
  To: cygwin

On 2017-07-12 14:15, Andrey Repin wrote:
> Brian Inglis wrote:
>> On 2017-07-12 00:16, Ugly Leper wrote:
>>> Starting from a Windows Command Prompt, and using a syntax recommended
>>> from years ago I still start a bash shell with
>>> start /wait bin\bash (i.e. not just bin\bash)
>>> and a mintty shell with
>>> start bin\mintty (i.e. not just bin\mintty)
>>> and yet experiment shows that both simplified forms in brackets "work".
>>> Am I gaining / losing anything by sticking with the older longer
>>> syntax, or can I just dive in, as in brackets?
> 
>> Running with start, like cygstart, spawns a separate window process
> 
> Not necessarily.
> Ref: START /B

Only in that case does it start a background console process sharing the cmd
window for output, like Unix shell jobs, but the program apparently goes
squirrelly if it tries to do any console input, although msg and dialogue boxes
work.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-12 23:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12  6:16 Starting from a Windows Command Prompt Ugly Leper
2017-07-12 10:20 ` Andrey Repin
2017-07-12 18:28 ` Brian Inglis
2017-07-12 20:20   ` Andrey Repin
2017-07-12 23:25     ` Brian Inglis

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