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

I can't get a straight answer ANYWHERE about this question.

In BASH, you can include a 'partial' script and execute it inline in the rest of your bash script with the following syntax:

#!/usr/bin/bash

. ~/my-partial-include-preamble-script.in.sh
# do stuff here 
# .
# . 
# .

The question is this: is this syntax in the POSIX standard, and if not, is there some syntax in the standard which accomplishes the same thing? Is there a link anyone can post showing where in the POSIX standard this syntax is defined (if applicable)?

share|improve this question
    
Here is the standard, look yourself: pubs.opengroup.org/onlinepubs/9699919799 –  SvW Mar 8 '12 at 21:01

1 Answer 1

up vote 2 down vote accepted

I just searched myself: The answer is yes, it's part of the standard.

share|improve this answer
    
thank you. I'm all for reading the manual. I just didn't know the directive was named 'dot' and therefore couldn't find the man page. I appreciate your pointing it out! –  djhaskin987 Mar 8 '12 at 21:13

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.