Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread Teodoro Santoni
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.



Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread Charles Forsyth
On 30 August 2015 at 19:25, Teodoro Santoni  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


Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread Teodoro Santoni
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.



Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread Ryan Gonzalez
Low space on main HDD, but plenty on external.

On August 30, 2015 12:00:57 PM CDT, erik quanstrom  
wrote:
>On Fri Aug 28 10:24:30 PDT 2015, rym...@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.

Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread erik quanstrom
On Fri Aug 28 09:09:09 PDT 2015, asbras...@gmail.com wrote:
> On Fri, Aug 28, 2015 at 11:49:41AM -0400, s...@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



Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread erik quanstrom
On Fri Aug 28 10:24:30 PDT 2015, rym...@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



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
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 <9...@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,  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/


Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Skip Tavakkolian
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,  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/




Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
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,  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/


Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Teodoro Santoni
On Fri, Aug 28, 2015 at 11:49:41AM -0400, s...@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.



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread sl
Take a look at $PLAN9/rcmain.

sl



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Teodoro Santoni
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.



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Staven
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.




[9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
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/