We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ca9cb commit dd09bcaCopy full SHA for dd09bca
chsh
@@ -72,10 +72,12 @@ if [ "$SHELL2SET" == "" ] ; then
72
exit 8
73
fi
74
if [ "$USER" == "" ] ; then
75
- echo "ERROR!! User not specified." >&2
76
- exit 8
+ USER="*CURRENT" #effectively making this an option parm, defaulting to *CURRENT
77
78
+if [[ "$SHELL2SET" != /* ]]; then
79
+ SHELL2SET="/QOpenSys/pkgs/bin/$SHELL2SET"
80
+fi
81
validate_shell "$SHELL2SET"
82
83
exec /usr/bin/qsh -c "/usr/bin/db2 \"CALL QSYS2.SET_PASE_SHELL_INFO('$USER', '$SHELL2SET')\" "
0 commit comments