🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #3996

Re: Bash equivalent of cmd /k switch

#3996
From: David W. Hodgins
Date: Tue, 02 Jun 2009 20:01
18 lines
1891 bytes
On Tue, 02 Jun 2009 15:28:17 -0400, Ben <bgold12@gmail.com> wrote:

> to the cmd.exe /c switch). My question is, is there a bash equivalent
> of the cmd.exe /k switch that can be used to execute a command and
> then remain open?

I think you're looking at the wrong command.  Bash is a shell, not a
terminal emulator.  Depending on terminal emulator you're using, try ...

konsole -noclose -e ls
xterm -hold -e ls

Regards, Dave Hodgins

-- 
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Technical Details
Message-ID: <op.uuwxxed9a3w0dxdave@hodgins.homeip.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!news.eternal-september.org!not-for-mail
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com>

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,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!news.eternal-september.org!not-for-mail
From: "David W. Hodgins" <dwhodgins@nomail.afraid.org>
Newsgroups: comp.unix.shell,comp.unix.programmer,gnu.bash
Subject: Re: Bash equivalent of cmd /k switch
Date: Tue, 02 Jun 2009 16:01:52 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <op.uuwxxed9a3w0dxdave@hodgins.homeip.net>
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
X-Trace: news.eternal-september.org U2FsdGVkX18IzSSjHQvHt96wSqwKbK79pAkjVu8fKBMWfV0BhXMgKTv3puk9FCWgoIE/ITF9vhzCO9JyxpuriyrK91DDXQZs+Fgbjb5VqIUFMoCWGR7c3vJSFQbxjTQpa3TTIpUWKa0QJumr1Ces0w==
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Tue, 2 Jun 2009 20:02:16 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX19S5xzqTbnvpU3znqXMD7g6+vMR4R+mmEguzzAuHt4ZXQ==
Cancel-Lock: sha1:D2NglKh6SbXKD2RGdTEuzU/Et54=
User-Agent: Opera Mail/10.00 (Linux)