🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4001

Re: Bash equivalent of cmd /k switch

#4001
From: David Schwartz
Date: Tue, 02 Jun 2009 22:10
13 lines
2000 bytes
On Jun 2, 1:56 pm, Nate Eldredge <n...@vulcan.lan> wrote:

> You could write your command to a file, and use --rcfile to point to
> it.  But I'm having a hard time understanding why you want to do this;
> most of the things I can imagine to do with this have better ways of
> doing them.  What's your goal here?

My guess would be that he wants to set up the shell in a special way.
Maybe he wants to set environment variables, the prompt, the current
working directory, and so on. This way, he can drop the user into a
shell especially configured for some application.

DS
Technical Details
Message-ID: <0d67cc76-a21f-40d0-a44f-16df03f78337@t10g2000vbg.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!t10g2000vbg.googlegroups.com!not-for-mail
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> <86eiu2cq2e.fsf@vulcan.lan>

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
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!t10g2000vbg.googlegroups.com!not-for-mail
From: David Schwartz <davids@webmaster.com>
Newsgroups: comp.unix.shell,comp.unix.programmer,gnu.bash
Subject: Re: Bash equivalent of cmd /k switch
Date: Tue, 2 Jun 2009 15:10:38 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <0d67cc76-a21f-40d0-a44f-16df03f78337@t10g2000vbg.googlegroups.com>
References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> 
 <86eiu2cq2e.fsf@vulcan.lan>
NNTP-Posting-Host: 67.142.166.29
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1243980638 18355 127.0.0.1 (2 Jun 2009 22:10:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 2 Jun 2009 22:10:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: t10g2000vbg.googlegroups.com; posting-host=67.142.166.29; 
 posting-account=BRCrIAoAAAAKkZeVD15S8K-frMEzBaTk
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) 
 Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 youknow.youwant.to (squid/3.0.STABLE15)