bash --login not working properly
search cancel

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

user1@SpectroSERVER MINGW64 ~
$ pwd
/c/Users/user1

user1@SpectroSERVER MINGW64 ~
$ echo $SPECROOT
D:/CA/Spectrum

 

Environment

Release : 20.2

Component : SpectroSERVER

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

Resolution

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