Skip to content

Set to bash prompt will fallback to SQL, if chsh is not installed#3131

Merged
sebjulliand merged 1 commit intocodefori:masterfrom
Nathaniel-King-Navarrete:master
Apr 4, 2026
Merged

Set to bash prompt will fallback to SQL, if chsh is not installed#3131
sebjulliand merged 1 commit intocodefori:masterfrom
Nathaniel-King-Navarrete:master

Conversation

@Nathaniel-King-Navarrete
Copy link
Copy Markdown
Contributor

Set to bash prompt will fallback to SQL, if chsh is not installed.

#2349

How to test this PR

Set your pase shell info to not bash. I updated my pase shell info by running this SQL statement:
call qsys2.set_pase_shell_info('*CURRENT', '/QOpenSys/usr/bin/ksh');

I ran the connection in the debugger and updated the remoteFeatures['chsh'] to be undefined. I stepped through the code and saw this code run
await connection.runSQL(`CALL QSYS2.SET_PASE_SHELL_INFO('*CURRENT', '/QOpenSys/pkgs/bin/bash')`);

I did not test to see what would happen if the sql statement failed.

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

@sebjulliand sebjulliand merged commit 7a64c21 into codefori:master Apr 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants