On Thu, Jun 13, 2019 at 11:56 AM Kevin Adler <kadler@xxxxxxxxxx> wrote:

Jack, can you please stop repeating these outdated instructions:
# detect if we're in a PASE shell /QSYS.LIB/QSHELL.LIB/UNAME.PGM >
/dev/null 2>&1
if [ $? != 0 -a "$SHELL" != "/QOpenSys/pkgs/bin/bash" ] then
exec /QOpenSys/pkgs/bin/bash

Please, for the love of everything, use the flippin' procedure:
[1]https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzajq/rzajqprocsetpaseshellinfo.htm

No doubt those instructions are outdated, but I think there is still
some demand for being able to detect whether a session was invoked via
(1) QSH on 5250, (2) QP2TERM on 5250, or (3) SSH with proper TTY
capability. As such, it would be nice to have a .profile that works
sensibly under all conditions.

Personally, given the horrific interaction between 5250 and the
RPM-based bash, I would prefer not to invoke bash automatically unless
coming in from SSH.

Also, your example .profile doesn't even show how to set the PATH variable
in it. Refer to
[2]https://bitbucket.org/ibmi/opensource/src/master/docs/yum/#markdown-header-adjusting-your-path

Well, to be fair, the example .profile may have been written with the
assumption that if you want to ultimately be using bash, you'll have a
.bashrc and set your PATH there.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.