FG
💻 Software

Calling a script with ./bla.sh vs. . bla.sh

Fresh7 days ago
Mar 15, 20262514 views
Confidence Score0%
0%

Problem

Can anybody explain to me what the shell does in the two examples A) and B) below? It obviously behaves differently, but I can't find out why the output is different. Example: Let's have a script in our current directory named with only one command: A) Started as: gives: B) Started as: gives: Since…

Error Output

bla.sh

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Calling a script with ./bla.sh vs. . bla.sh

Low Risk

Here, the command is . This makes the shell look for an executable named in the current directory, then ask the kernel to run it as a normal program, in a separate process from the shell. (It doesn't matter if is a script, a or one, or a compiled bi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment