Equivalent of __FILE__ and __LINE__ in Bash

后端 未结 4 774

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:

<
4条回答
提交回复
热议问题