1

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)?

djhaskin987
  • 388
  • 4
  • 14
  • Here is the standard, look yourself: http://pubs.opengroup.org/onlinepubs/9699919799/ – Sven Mar 08 '12 at 21:01

1 Answers1

2

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

Sven
  • 98,649
  • 14
  • 180
  • 226
  • 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 08 '12 at 21:13