batch-file Differences between Batch (Windows) and Terminal (Linux) Batch Variables and Their Bash Equivalent


%variable%$variableA regular variable
!variable!$variableA variable inside of a code block when setlocal enabledelayedexpansion is on
%errorlevel% or ERRORLEVEL$?Returns the status of the previous command: 0 if successful, 1 (or something else) if not
%1, %2, %3, etc.$1, $2, $3, etc.The parameters given to a script
%*$*All parameters given to a script