* Re: [9fans] On Linux, what is the rc init file?
@ 2015-08-28 15:49 sl
2015-08-28 16:07 ` Teodoro Santoni
2015-08-28 16:25 ` Ryan Gonzalez
0 siblings, 2 replies; 14+ messages in thread
From: sl @ 2015-08-28 15:49 UTC (permalink / raw)
To: 9fans
Take a look at $PLAN9/rcmain.
sl
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 15:49 [9fans] On Linux, what is the rc init file? sl
@ 2015-08-28 16:07 ` Teodoro Santoni
2015-08-30 17:02 ` erik quanstrom
2015-08-28 16:25 ` Ryan Gonzalez
1 sibling, 1 reply; 14+ messages in thread
From: Teodoro Santoni @ 2015-08-28 16:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Fri, Aug 28, 2015 at 11:49:41AM -0400, sl@9front.org wrote:
> Take a look at $PLAN9/rcmain.
>
> sl
Well, punch me in the face and call me Suzanne!
That changes everything, because absence of a .bashrc
lookalike was the thing that prevented me from using
rc for everyday shell needs. But I never investigated a lot.
Thank you
--
Teodoro Santoni
Something is wrong. I don't wanna compile 20 KB of Go code to list files.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 15:49 [9fans] On Linux, what is the rc init file? sl
2015-08-28 16:07 ` Teodoro Santoni
@ 2015-08-28 16:25 ` Ryan Gonzalez
2015-08-28 16:37 ` Skip Tavakkolian
1 sibling, 1 reply; 14+ messages in thread
From: Ryan Gonzalez @ 2015-08-28 16:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
Thank you!
However, I think rc now hates me for some reason. :/ Watch:
ryan@DevPC-LX:~$ rc # works normally
% echo "Hello, world!"
"Hello, world!"
% ryan@DevPC-LX:~$
ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
ryan@DevPC-LX:~$ rc # does nothing??
ryan@DevPC-LX:~$ echo $?
0
ryan@DevPC-LX:~$
rc -v does nothing, either. If I unset $PLAN9, things work again.
On Fri, Aug 28, 2015 at 10:49 AM, <sl@9front.org> wrote:
> Take a look at $PLAN9/rcmain.
>
> sl
>
>
--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
[-- Attachment #2: Type: text/html, Size: 1515 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 16:25 ` Ryan Gonzalez
@ 2015-08-28 16:37 ` Skip Tavakkolian
2015-08-28 17:22 ` Ryan Gonzalez
0 siblings, 1 reply; 14+ messages in thread
From: Skip Tavakkolian @ 2015-08-28 16:37 UTC (permalink / raw)
To: 9fans
make sure $PLAN9/bin is in front in your PATH. try this:
BIGASSBASHPROMPT$ 9 rc -i
> Thank you!
>
> However, I think rc now hates me for some reason. :/ Watch:
>
> ryan@DevPC-LX:~$ rc # works normally
> % echo "Hello, world!"
> "Hello, world!"
> % ryan@DevPC-LX:~$
> ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
> ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
> ryan@DevPC-LX:~$ rc # does nothing??
> ryan@DevPC-LX:~$ echo $?
> 0
> ryan@DevPC-LX:~$
>
> rc -v does nothing, either. If I unset $PLAN9, things work again.
>
>
> On Fri, Aug 28, 2015 at 10:49 AM, <sl@9front.org> wrote:
>
>> Take a look at $PLAN9/rcmain.
>>
>> sl
>>
>>
>
>
> --
> Ryan
> [ERROR]: Your autotools build scripts are 200 lines longer than your
> program. Something’s wrong.
> http://kirbyfan64.github.io/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 16:37 ` Skip Tavakkolian
@ 2015-08-28 17:22 ` Ryan Gonzalez
2015-08-30 17:00 ` erik quanstrom
0 siblings, 1 reply; 14+ messages in thread
From: Ryan Gonzalez @ 2015-08-28 17:22 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
YES!! That was it! My plan9home directory didn't contain a bin folder; that
was somewhere else. When I symlinked it there, it worked! Thank you!
On Fri, Aug 28, 2015 at 11:37 AM, Skip Tavakkolian <9nut@9netics.com> wrote:
> make sure $PLAN9/bin is in front in your PATH. try this:
>
> BIGASSBASHPROMPT$ 9 rc -i
>
>
> > Thank you!
> >
> > However, I think rc now hates me for some reason. :/ Watch:
> >
> > ryan@DevPC-LX:~$ rc # works normally
> > % echo "Hello, world!"
> > "Hello, world!"
> > % ryan@DevPC-LX:~$
> > ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
> > ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
> > ryan@DevPC-LX:~$ rc # does nothing??
> > ryan@DevPC-LX:~$ echo $?
> > 0
> > ryan@DevPC-LX:~$
> >
> > rc -v does nothing, either. If I unset $PLAN9, things work again.
> >
> >
> > On Fri, Aug 28, 2015 at 10:49 AM, <sl@9front.org> wrote:
> >
> >> Take a look at $PLAN9/rcmain.
> >>
> >> sl
> >>
> >>
> >
> >
> > --
> > Ryan
> > [ERROR]: Your autotools build scripts are 200 lines longer than your
> > program. Something’s wrong.
> > http://kirbyfan64.github.io/
>
>
>
--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
[-- Attachment #2: Type: text/html, Size: 2309 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 17:22 ` Ryan Gonzalez
@ 2015-08-30 17:00 ` erik quanstrom
2015-08-30 17:50 ` Ryan Gonzalez
0 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2015-08-30 17:00 UTC (permalink / raw)
To: 9fans
On Fri Aug 28 10:24:30 PDT 2015, rymg19@gmail.com wrote:
> YES!! That was it! My plan9home directory didn't contain a bin folder; that
> was somewhere else. When I symlinked it there, it worked! Thank you!
>
>
out of curiousity, why use a non-standard install?
- erik
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 16:07 ` Teodoro Santoni
@ 2015-08-30 17:02 ` erik quanstrom
2015-08-30 18:25 ` Teodoro Santoni
0 siblings, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2015-08-30 17:02 UTC (permalink / raw)
To: 9fans
On Fri Aug 28 09:09:09 PDT 2015, asbrasbra@gmail.com wrote:
> On Fri, Aug 28, 2015 at 11:49:41AM -0400, sl@9front.org wrote:
> > Take a look at $PLAN9/rcmain.
> >
> > sl
>
> Well, punch me in the face and call me Suzanne!
> That changes everything, because absence of a .bashrc
> lookalike was the thing that prevented me from using
> rc for everyday shell needs. But I never investigated a lot.
> Thank you
the .bashrc lookalike is *not* rcmain. rcmain is the second
phase of the rc virtual machine bootstrapping itself.
the .bashrc lookalike is $home/lib/profile.
- erik
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-30 17:00 ` erik quanstrom
@ 2015-08-30 17:50 ` Ryan Gonzalez
0 siblings, 0 replies; 14+ messages in thread
From: Ryan Gonzalez @ 2015-08-30 17:50 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs, erik quanstrom
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
Low space on main HDD, but plenty on external.
On August 30, 2015 12:00:57 PM CDT, erik quanstrom <quanstro@quanstro.net> wrote:
>On Fri Aug 28 10:24:30 PDT 2015, rymg19@gmail.com wrote:
>
>> YES!! That was it! My plan9home directory didn't contain a bin
>folder; that
>> was somewhere else. When I symlinked it there, it worked! Thank you!
>>
>>
>
>out of curiousity, why use a non-standard install?
>
>- erik
--
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 915 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-30 17:02 ` erik quanstrom
@ 2015-08-30 18:25 ` Teodoro Santoni
2015-08-30 19:07 ` Charles Forsyth
0 siblings, 1 reply; 14+ messages in thread
From: Teodoro Santoni @ 2015-08-30 18:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Sun, Aug 30, 2015 at 10:02:54AM -0700, erik quanstrom wrote:
>
> the .bashrc lookalike is *not* rcmain. rcmain is the second
> phase of the rc virtual machine bootstrapping itself.
>
> the .bashrc lookalike is $home/lib/profile.
>
> - erik
I don't see any real difference between adding modified versions of my .bashrc
things to rcmain or putting them to $home/lib/profile and editing rcmain to
make it do -l every time rc is launched as an interactive shell. There are a
lot, though. And that may means it will source the file even if I use rc as it
was a scripting language for things that aren't my terminal env.
I just didn't like to wrap rc -l, use win rc -l or launch rc and .
$home/lib/profile (or whatever I would use as alias). So probably I'll use
rcmain in a fashion that would resemble, in part or wholly, .bashrc.
--
Teodoro Santoni
Something is wrong. I don't wanna compile 20 KB of Go code to list files.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-30 18:25 ` Teodoro Santoni
@ 2015-08-30 19:07 ` Charles Forsyth
2015-08-30 20:30 ` Teodoro Santoni
0 siblings, 1 reply; 14+ messages in thread
From: Charles Forsyth @ 2015-08-30 19:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
On 30 August 2015 at 19:25, Teodoro Santoni <asbrasbra@gmail.com> wrote:
> I don't see any real difference between adding modified versions of my
> .bashrc
> things to rcmain or putting them to $home/lib/profile
>
rcmain is shared. the profile is per-user
[-- Attachment #2: Type: text/html, Size: 609 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-30 19:07 ` Charles Forsyth
@ 2015-08-30 20:30 ` Teodoro Santoni
0 siblings, 0 replies; 14+ messages in thread
From: Teodoro Santoni @ 2015-08-30 20:30 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Sun, Aug 30, 2015 at 08:07:06PM +0100, Charles Forsyth wrote:
> rcmain is shared. the profile is per-user
As long as $PLAN9 is shared.
But my conf is to be used in a machine which is single-user, atm.
--
Teodoro Santoni
Something is wrong. I don't wanna compile 20 KB of Go code to list files.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 15:13 Ryan Gonzalez
2015-08-28 15:28 ` Staven
@ 2015-08-28 15:34 ` Teodoro Santoni
1 sibling, 0 replies; 14+ messages in thread
From: Teodoro Santoni @ 2015-08-28 15:34 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Good afternoon,
On Fri, Aug 28, 2015 at 10:13:26AM -0500, Ryan Gonzalez wrote:
> Every shell has one. You know, like .bashrc, .profile, etc. What's
> plan9port rc's?
Nothing AFAICT. But, when used as login shell or with -l option, it should
execute on startup the command . $home/lib/profile...
--
Teodoro Santoni
Something is wrong. I don't wanna compile 20 KB of Go code to list files.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [9fans] On Linux, what is the rc init file?
2015-08-28 15:13 Ryan Gonzalez
@ 2015-08-28 15:28 ` Staven
2015-08-28 15:34 ` Teodoro Santoni
1 sibling, 0 replies; 14+ messages in thread
From: Staven @ 2015-08-28 15:28 UTC (permalink / raw)
To: 9fans
On Fri, Aug 28, 2015 at 10:13:26AM -0500, Ryan Gonzalez wrote:
> Every shell has one. You know, like .bashrc, .profile, etc. What's
> plan9port rc's?
It's all there in the manual.
-l If -l is given or the first character of argument
zero is -, rc reads commands from
$home/lib/profile, if it exists, before reading
its normal input.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [9fans] On Linux, what is the rc init file?
@ 2015-08-28 15:13 Ryan Gonzalez
2015-08-28 15:28 ` Staven
2015-08-28 15:34 ` Teodoro Santoni
0 siblings, 2 replies; 14+ messages in thread
From: Ryan Gonzalez @ 2015-08-28 15:13 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 229 bytes --]
Every shell has one. You know, like .bashrc, .profile, etc. What's
plan9port rc's?
--
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
[-- Attachment #2: Type: text/html, Size: 594 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-08-30 20:30 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28 15:49 [9fans] On Linux, what is the rc init file? sl
2015-08-28 16:07 ` Teodoro Santoni
2015-08-30 17:02 ` erik quanstrom
2015-08-30 18:25 ` Teodoro Santoni
2015-08-30 19:07 ` Charles Forsyth
2015-08-30 20:30 ` Teodoro Santoni
2015-08-28 16:25 ` Ryan Gonzalez
2015-08-28 16:37 ` Skip Tavakkolian
2015-08-28 17:22 ` Ryan Gonzalez
2015-08-30 17:00 ` erik quanstrom
2015-08-30 17:50 ` Ryan Gonzalez
-- strict thread matches above, loose matches on Subject: below --
2015-08-28 15:13 Ryan Gonzalez
2015-08-28 15:28 ` Staven
2015-08-28 15:34 ` Teodoro Santoni
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 NNTP newsgroup(s).