[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

2276.0. "Re: Reminder when porting fixes: ODE set names must be unique across sandboxes" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue May 14 1996 02:50

Date Of Receipt: 	13-MAY-1996 22:26:21.89
From: 	GURU::kucherov "sergei kucherov  13-May-1996 2217"
To: 	kucherov@dec:.zko.guru
CC: 	useg@mudrat.zk3.dec.com, odehelp@dec:.zko.guru, eve@dec:.zko.guru,
	thomson@dec:.zko.guru
Subj: 	Re: Reminder when porting fixes: ODE set names must be unique across  sandboxes
Quick exit: 	stop reading now if you don't care about having

your ODE sets logically local to their containing sandboxes.

------------------------------------------------------------------------

I have just whipped up a "safe" version of the ODE "workon" command
(along with a sample alias which I expect you'll want to tailor
-- sorry I can't assist you with it)
which solves the several problems mentioned in prior mail.
With this safe version of the command, sets are logically local to their
sandbox. Also you must be in a sandbox to start a new set, for safety.
You can now have the same (logical) set name in many sandboxes.

I will leave it to the odehelp group to translate my initial quick
(but complete) attempts at this tool into a ksh tool
installed in a standard place
(thus any complaints about portability or other issues should be
sent directly to odehelp, not to me).
What I have today, works; you just need read access to guru:~kucherov/bin.

The tool is ~kucherov/bin/workon_safe.

Here is a sample non-robust csh alias I use to make sure the sandbox
and set names are included in my prompt when I am in a workon session
(see ~kucherov/{.aliases,.cshrc} for prompt usage):

if ($?WORKON) then
    # part up to else is on one line
    alias workon 'setenv PROMPT "ode ${SANDBOX}%\!:$ ${HOSTNAME}> "; 
/home/kucherov/bin/workon_safe \!*'
else
    # part up to endif is on one line
    alias workon 'setenv PROMPT "ode \!:$ ${HOSTNAME}> "; 
/home/kucherov/bin/workon_safe \!*'
endif

	sergei


P.S. odehelp group: my tool needs to be rewritten in ksh or perl
and installed to a standard place. I'd appreciate it if you put this
minor task in your work queue. Many thanks.

T.RTitleUserPersonal
Name
DateLines