VectorLinux

Vectorbie Station => Vectorbie Questions => Topic started by: Locator on May 29, 2014, 01:51:17 pm

Title: [ SOLVED ] .bash file useage help please.
Post by: Locator on May 29, 2014, 01:51:17 pm
What is the procedure for using ".bash" files? It seems that some linux software packages use it for installing programs.
Title: Re: .bash file useage help please.
Post by: caitlyn on May 29, 2014, 02:18:27 pm
.bash?  Do you mean .bashrc or .bash_profile?
Title: Re: .bash file useage help please.
Post by: roarde on May 29, 2014, 08:01:14 pm
 .sh files are to be interpreted by a "vanilla" Unix shell and should contain NO commands that need a certain shell (ksh, Bash, . . .) in order to run them properly.

It had become habit to tag bash scripts with the extension ".sh". Wrong! So many scripters who use bash-specific commands or syntax (or don't wish to make special efforts to see that they're not doing so) began using the extension ".bash" instead. Actually, I'd say that's an improvement.

So: If you see "myscript.bash", run it with "bash myscript.bash". You might want to look through it first though, to see if there's anything in it that you wouldn't feel comfortable running from the command line. That's what a ".bash" is, after all. A set of commands for the command line of Linux's most common user shell.

The files caitlyn mentioned are startup files bash looks for by name. Both are often referred to and are quite important -- they'll affect how Bash works.
Title: Re: .bash file useage help please.
Post by: Locator on June 02, 2014, 12:07:19 pm
Thank you.