Thanks, I did not know about this emu $args usage.
The issue I mentioned is a little different:
Assume the user logging in is joe. I have some bind commands in /usr/joe/namespace.
emu /dis/wm/wm.dis wm/logon -u joe
open a tk shell window:
ns # does not show the binds specified in /usr/joe/namespace
Looking through the code, wm/logon.b is loading the nsfile (in this case, /usr/joe/namespace) as shown by the below code snippet.
if(nsfile != nil){
(ok, nil) = sys->stat(nsfile);
if(ok < 0){
nsfile = nil;
(ok, nil) = sys->stat("namespace");
}
}else
(ok, nil) = sys->stat("namespace");
if(ok >= 0) {
ns := load Newns Newns->PATH;
if(ns == nil)
notice("failed to load namespace builder");
else if ((nserr := ns->newns(nil, nsfile)) != nil)
notice("namespace error:\n"+nserr);
}
I am not able to figure out why the tk shell windows or acme win ns does not show the above loaded /usr/joe/namespace contents.
Hope the above makes sense.
Thanks