ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

bash --login not working properly

book

Article ID: 226185

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

bash on one Spectroserver on Windows is not working as we expected.

The bash --login start bash, but is not starting in SPECROOT directory.

C:\Users\user1>bash --login

[email protected] MINGW64 ~
$ pwd
/c/Users/user1

[email protected] MINGW64 ~
$ echo $SPECROOT
D:/CA/Spectrum

 

Cause

There was another instance of bash.

If the bash.exe is lanched from the following directory, there is no issue:

cd \CA\Spectrum\NT-Tools\SRE\bin

D:\CA\Spectrum\NT-Tools\SRE\bin> bash --login

Environment

Release : 20.2

Component : SpectroSERVER

Resolution

Changed the path order to launch the bash from the Spectrum folder.