[Rocks-Discuss] /etc/profile.d/ssh-key.sh question

19 views
Skip to first unread message

Martin BALVERS

unread,
Jan 12, 2012, 10:15:00 AM1/12/12
to npaci-rocks...@sdsc.edu
Hi all,

What is the purpose of the following line in /etc/profile.d/ssh-key.sh ?

[ $SHLVL -gt 1 ] && EXIT=exit || EXIT=return

It prevents me from opening any sub-shell like screen (or ctrl-o in
midnight-commander).
Is it really necessary to check the shell level?

When I comment out the following "$EXIT $?" statements, sub-shells work
fine, and I haven't seen any unwanted side effects.

This is on Rocks 5.4.3

Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20120112/f4ff10e0/attachment.html

Luca Clementi

unread,
Jan 12, 2012, 11:53:08 AM1/12/12
to Discussion of Rocks Clusters
Martin,
this is a know "bug" with 5.4.3
http://marc.info/?l=npaci-rocks-discussion&m=132380426316070&w=2

Sincerely,
Luca

Reply all
Reply to author
Forward
0 new messages