View Issue Details

IDProjectCategoryView StatusLast Update
0013093Open CASCADEOCCT:WOKpublic2014-04-16 11:56
ReporterabvAssigned Toapv 
PrioritynormalSeveritytrivial 
Status closedResolutionwon't fix 
OSAll 
Summary0013093: Command "wokenv -s" incorrectly updates environment variables
DescriptionThere are at least three problems with the way how environment variables are
set by command "wokenv -s".

(1) When run within Emacs *woksh* buffer, it modifies environment of the Emacs
process. This is the most annoying problem, since it amplifies effect of the
others. Normally all the changes in environment must be local to tclsh/WOK
process which is run in woksh buffer, so that killing that buffer should allow
restarting it with clean environment.

(2) It does not ensure that paths to current workbench are located before all
other paths

(3) It does not remove paths to other workbenches, which might have been set by
previous call to wokenv -s, while current workbench might have changes since
that call

To reproduce:

1. Start Emecs
2. M-x, woksh
3. wokcd KAS:dev:Products
4. wokenv -s
5. In Emacs menu, select Help/Describe/Describe Variable, input process-
environment, press Enter
   ==> Emacs displays environment where value for variable LD_LIBRARY_PATH
contains paths to Products and ros libraries, and also other changes make by
wokenv. This demonstrates problem (1)

6. Kill woksh
7. M-x, woksh
8. wokcd KAS:dev:ros
9. wokenv -s
10.printenv LD_LIBRARY_PATH

   ==> The value of the variable is incorrect:

a) It contains path to /dn01/KAS/BAG/wok-dev/lib before path to workbenches!
Since that directory contains TKernel library, it will be taken instead of
TKernel from ros. This demonstrates error (2)

b) It contains path to Products before path to ros. This demonstrates problem (
3)

Note that the last two problems do not depend on Emacs, they can be reproduced
in single tclsh session launched from within shell.
TagsNo tags attached.
Test case number

Attached Files

Activities

2006-07-31 17:04

 

occ13093-abv-v1.tar.gz (16,434 bytes)

Issue History

Date Modified Username Field Change
2006-07-31 15:07 bugmaster Assigned To bugmaster => imv
2006-07-31 15:07 bugmaster Status new => assigned
2006-07-31 15:23 imv Status assigned => resolved
2006-07-31 19:14 abv CC => gka
2006-08-22 12:51 bugmaster CC => imv
2006-11-22 15:41 bugmaster Assigned To imv => apv
2006-11-22 15:41 bugmaster Status resolved => assigned
2014-04-16 11:32 kgv Resolution open => won't fix
2014-04-16 11:32 kgv Fixed in Version EMPTY =>
2014-04-16 11:32 kgv Description Updated
2014-04-16 11:56 bugmaster Status assigned => closed