from bugs@ On 2022/07/26 13:07, Theo Buehler wrote: > On Tue, Jul 26, 2022 at 11:49:09AM +0100, Stuart Henderson wrote: > > On 2022/07/25 23:41, [email protected] wrote: > > > >Description: > > > This change adds the \% argument to the ksh process of the prompt. This > > > will > > > cause the current rdomain of the shell to be displayed in the prompt. > > > This > > > can be quite helpful when bouncing around between different rdomains. > > > > I'm not convinced that stacking more non-standard features in shell > > prompt handling to show the rtable (note, not rdomain) is the best idea. > > And I don't think it's going to change during the lifetime of a shell is > > it? > > > > Could your profile/kshrc set up the prompt based on the current > > rtable at the time PS1 is set instead? It's not entirely straightforward, > > but these chicken scratches will show the table used by the current shell: > > > > ps -o rtable= -p $$ > > id -R >
I tried looking for a command to do this and completely failed hence the ugly ps command. Do we want something like this? Index: route.8 =================================================================== RCS file: /cvs/src/sbin/route/route.8,v retrieving revision 1.103 diff -u -p -r1.103 route.8 --- route.8 31 Mar 2022 17:27:20 -0000 1.103 +++ route.8 26 Jul 2022 11:41:41 -0000 @@ -102,6 +102,8 @@ Execute a command forcing the process an routing table and appropriate routing domain as specified with the .Fl T Ar rtable option. +The current routing table can be displayed with +.Xr id 1 . .It Xo .Nm route .Op Fl nqv @@ -625,6 +627,7 @@ to create the new entry. .El .Sh SEE ALSO .Xr netstat 1 , +.Xr getrtable 2 , .Xr gethostbyname 3 , .Xr netintro 4 , .Xr route 4 ,
