Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On Suse 11 though the default shell is bash, when I run any executable shell like ./IsCurrentShell then this script is run using sh instead of bash. How can I make this behavior to change such that the scripts run using ./ should run with bash.

EDIT :- Looking for global level solutions like any changes in .bashrc or any environment variable change. Or adding entry to some config file.

share|improve this question

1 Answer 1

Putting #!/bin/bash to the shebang line of your script explicitly should help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.