Article View: comp.unix.shell
Article #4003Re: Bash equivalent of cmd /k switch
From: Scott Lurndal
Date: Wed, 03 Jun 2009 00:25
Date: Wed, 03 Jun 2009 00:25
19 lines
1747 bytes
1747 bytes
David Schwartz <davids@webmaster.com> writes: >On Jun 2, 1:56=A0pm, Nate Eldredge <n...@vulcan.lan> wrote: > >> You could write your command to a file, and use --rcfile to point to >> it. =A0But 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. =A0What'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 Why not use .profile/.login/.kshrc/.bashrc as appropriate for the shell being used? scott
Technical Details
Message-ID:
<4a25c2ea$0$5514$b66e132@news.usenetserver.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!nx02.iad01.newshosting.com!newshosting.com!209.197.12.218.MISMATCH!post02.iad!not-for-mailReferences:
<c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> <86eiu2cq2e.fsf@vulcan.lan> <0d67cc76-a21f-40d0-a44f-16df03f78337@t10g2000vbg.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!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!nx02.iad01.newshosting.com!newshosting.com!209.197.12.218.MISMATCH!post02.iad!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@althor.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: Bash equivalent of cmd /k switch Newsgroups: comp.unix.shell,comp.unix.programmer,gnu.bash References: <c7e2ac57-0e67-4727-a1ca-f5e4adea3803@r16g2000vbn.googlegroups.com> <86eiu2cq2e.fsf@vulcan.lan> <0d67cc76-a21f-40d0-a44f-16df03f78337@t10g2000vbg.googlegroups.com> Date: 03 Jun 2009 00:25:14 GMT Lines: 19 Message-ID: <4a25c2ea$0$5514$b66e132@news.usenetserver.com> X-Complaints-To: abuse@usenetserver.com