To source a file means to run commands contained in a text file in the current instance of the shell. This is accomplished using a command built into the shell.
Under Bourne shell and its derivatives, the name of this command is .
(a single period). For example, if SQL Anywhere is installed in /opt/sqlanywhere16, the following statement sources sa_config.sh:
. /opt/sqlanywhere16/bin32/sa_config.sh |
For example, on a Mac, run the following command to source sa_config.sh:
. Applications/SQLAnywhere16/System/bin32/sa_config.sh |
Under C-shell and its derivatives, the command is source
. For example, if SQL Anywhere is installed in /opt/sqlanywhere16, the following command sources sa_config.csh:
source /opt/sqlanywhere16/bin32/sa_config.csh |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |