Rocket U2 | UniVerse & UniData

 View Only

 No AIX prompt when using SH

Jump to  Best Answer
Jose Sousa's profile image
Jose Sousa posted 08-29-2024 15:13

I am running AIX and ksh.  At the AIX prompt, I have:

AIX $

which matches the value for PS1   

PS1='AIX $ '

when I issue the SH command from Universe,  I get to the host system.  I can issue AIX commands (without issue I think)
However,  the Prompt is NOT displayed.  It is just blank

The shells are linked together:

$ ls -al | grep 326868


# -r-xr-xr-x    5 bin      bin          326868 Sep 12 2023  ksh
# -r-xr-xr-x    5 bin      bin          326868 Sep 12 2023  psh
# -r-xr-xr-x    5 bin      bin          326868 Sep 12 2023  rksh
# -r-xr-xr-x    5 bin      bin          326868 Sep 12 2023  sh
# -r-xr-xr-x    5 bin      bin          326868 Sep 12 2023  tsh

Does some configuration option need to be set ?

Mike Bojaczko's profile image
Mike Bojaczko  Best Answer

Did you try >COMO OFF then >SH?

How about >CT VOC SH and from aix,  "which ksh"?

Ian McGowan's profile image
Ian McGowan

I've noticed a similar thing with bash from Unidata.  Not sure if this is a workaround for you, but "bash -i" for an interactive shell works for me.  I'm not sure if the U2 system is to blame here, or if it's a side-effect of how the shell process gets run...

Neil Morris's profile image
ROCKETEER Neil Morris

What output do you get if you enter 'env' after issuing the SH command? 

I just did a test and after setting 'PS1', the value is carried forward after starting a uvsh process and entering SH.

heyecho $PS1
hey
heyuv
UniVerse Command Language 11.3
Copyright Rocket Software, Inc. or its affiliates, All Rights Reserved 1985-2021
morrisn logged on: Wed Aug 28 08:09:41 2024

HEY THERE
>SH
heyenv | grep PS1
PS1=hey
hey