[TynesideLUG] The equivalent of #include in the Bash shell
Ian Bruntlett
ian.bruntlett at gmail.com
Sun Feb 4 14:40:01 UTC 2024
Hi,
Neil was wondering about this command I was using on Casey's laptop
yesterday in the LUG. It is the "source" command - also abbreviated as ".".
Here is the online help for them both:
:~$ help .
.: . filename [arguments]
Execute commands from a file in the current shell.
Read and execute commands from FILENAME in the current shell. The
entries in $PATH are used to find the directory containing FILENAME.
If any ARGUMENTS are supplied, they become the positional parameters
when FILENAME is executed.
Exit Status:
Returns the status of the last command executed in FILENAME; fails if
FILENAME cannot be read.
$ help source
source: source filename [arguments]
Execute commands from a file in the current shell.
Read and execute commands from FILENAME in the current shell. The
entries in $PATH are used to find the directory containing FILENAME.
If any ARGUMENTS are supplied, they become the positional parameters
when FILENAME is executed.
Exit Status:
Returns the status of the last command executed in FILENAME; fails if
FILENAME cannot be read.
HTH,
Ian
--
-- ACCU - Professionalism in programming - http://www.accu.org
-- Free Software page -
https://github.com/ian-bruntlett/TECH-Manuals/blob/main/tm-free-software.md
More information about the Tyneside
mailing list