![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Environment discovery under Linuxby The Hindmost (Scribe) |
on Sep 30, 2008 at 07:50 UTC ( #714491=perlquestion: print w/replies, xml ) | Need Help?? |
The Hindmost has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I'm currently modifying the Linux connection shell script for my University's network (to improve efficiency and connection success) and have found an interesting conundrum: bash works fine as a shell, sh doesn't (no known data for other shells yet).
So I've written a small perl program to pull the current shell out of env's output and warn the user if they're not running bash (code below):
This works, but it's more a question of efficiency is this the fastest way to do this (unlikely) and if there is a faster way can you give me any hints. Thanks in advance Chris
Back to
Seekers of Perl Wisdom
|
|