🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4017

Re: Bash equivalent of cmd /k switch

#4017
From: Kenneth Brody
Date: Tue, 09 Jun 2009 16:51
23 lines
2302 bytes
Ben Finney wrote:
> Ben <bgold12@gmail.com> writes:
> 
>> On Windows, cmd.exe has the /k switch, which lets you execute a
>> command given by a command-line argument, and then the shell remains
>> open after finishing the execution of the command.
> 
> Note that �cmd.exe� is a program that gives a windowed terminal
> emulator, and it is that terminal emulator that remains after the
> commands within it have ended.
[...]
 > The �bash� program, on the other hand, has nothing to do with providing
 > a terminal emulator; it runs within a terminal provided by something
 > else.

Incorrect.  cmd.exe is a command shell, which runs in a console window 
supplied by Windows.  It does not supply a "terminal emulator" any more than 
bash does.

[...]

-- 
Kenneth Brody
Technical Details
Message-ID: <vd6dnZavEZeWDrPXnZ2dnUVZ_uednZ2d@bestweb.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.bestweb.net!news.bestweb.net.POSTED!not-for-mail
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> <87prdmq8aj.fsf@benfinney.id.au>

Show Full Headers
Complete Article Headers
X-Google-Thread: 4d82dd0a1,dfab991ae69ee2e
X-Google-Attributes: gid4d82dd0a1,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,CP1252
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.bestweb.net!news.bestweb.net.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 09 Jun 2009 11:51:23 -0500
Date: Tue, 09 Jun 2009 12:51:08 -0400
From: Kenneth Brody <kenbrody@spamcop.net>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
Newsgroups: comp.unix.shell,comp.unix.programmer,gnu.bash
Subject: Re: Bash equivalent of cmd /k switch
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> <87prdmq8aj.fsf@benfinney.id.au>
In-Reply-To: <87prdmq8aj.fsf@benfinney.id.au>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <vd6dnZavEZeWDrPXnZ2dnUVZ_uednZ2d@bestweb.net>
Lines: 23
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 71.251.14.137
X-Trace: sv3-oCjbF04W7R0mP8qCOGv7tQvJIeGJJ9LPrMnO8+B4cik9KL5WJ7/YRipmTcAbb4D06M/atLnt184hWSk!fclG+uV+rT7JC3xCzK25lo7Pq7r9+LsfqfyI3Y2XC8yPgYd9cNlbIo+dr/ROxj7B4gu1r7z2ngnv!PakBEx82fOu7G8YyYxpzf9hqJA==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 2031