Skip to content

Weird behavior of TCL directory command #2982

@joshStillerman

Description

@joshStillerman

Affiliation
MIT PSFC

Version(s) Affected

TCL> show version


MDSplus version: 7.156.0
----------------------
  Release:  alpha_release-7-156-0
  Date:     Mon Oct 27 22:02:21 UTC 2025
  Browse:   https://github.com/MDSplus/mdsplus/tree/alpha_release-7-156-0
  Download: https://github.com/MDSplus/mdsplus/releases/tag/alpha_release-7-156-0

Platform(s)
Ubuntu
The Operating System(s) you're running on.

Installation Method(s)
Kits

Describe the bug
an MDSTCL DIR command on the C-Mod tree for shot 1160930043 after setting default to .SPECTROSCOPY gives strange results.

To Reproduce

TCL> set tree cmod /shot=1160930043
TCL> set def .spectroscopy
TCL> dir

\SPECTROSCOPY::TOP

 :CMOD_ENCODER :EARLS_MPB    :FLIR_CAMERA  :TSTART      

  BOLOMETER     BREM_FLCT     CCD           CHROMEX       CHROMEX2    
  DALSA         DMBOLO        FABRY_PEROT   GAS_INPUT     GPI         
  H0            HALPH_DALPH   HIREX         HIREXJR       HIREXSR     
  HIREX_SR      HTSPECS       ICRF_LIGHT    IMPSPEC       IMPURITIES  
  INFRARED      IR_CAMERA     IR_SPECTRA    JHU_DIV_PER   KAISER      
  KODAK         LOWEUS        LPI           ME_SXR        MOTION      
  MSI           MULTIXRAY     NESOXS        OCEAN_OPTICS  OMA         
  ORNL_SELHF    PPPL_FLIR     SHEAR_INTERF  UMD_SPECT     UVIS        
  VIDEO       

Total of 45 nodes.

\CMOD::TOP

 :VIDEO_DAQ   

Total of 1 node.

\SPECTROSCOPY::TOP

  VIS_SPEC      VUV           XEUS          X_RAY_MONO    X_RAY_PHA   
  Z_METER     

Total of 6 nodes.


Grand total of 52 nodes.
TCL> 

Expected behavior
Only show children and members of the spectroscopy node.

** I have not tried to isolate this problem yet **

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions