Equivalent of `__FILE__`, `__LINE__` in bash
- by bibop554
Is there any variable in bash that contains the name of the .sh file executed ?
The line number would be great too.
I want to use it in error messages such as:
echo "ERROR: [$FILE:L$LINE] $somefile not found"
Thank you