meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:bash:source [2026/05/05 12:13] – created niziaklinux:bash:source [2026/05/05 12:16] (current) niziak
Line 2: Line 2:
  
 Possible test scenario: Possible test scenario:
-  - call using from another directory full path /home/user/bin/myscripth.sh +  - call from another directory by full path ''/home/user/bin/myscripth.sh'' 
-  - add /home/user/bin to PATH and then call from another directory by "myscript.sh"+  - add ''/home/user/bin'' to PATH and then call from another directory by ''myscript.sh''
   - create symlink to script and call using symlink. Check for relative and absolute symlinks.   - create symlink to script and call using symlink. Check for relative and absolute symlinks.
-  - it should work also if it is sourced "sourceor "."+  - it should work also if it is sourced ''source'' or ''.''
  
 The best is to create setup/installer script which hardcode path to one shared script. The best is to create setup/installer script which hardcode path to one shared script.