I use Gedit and enabled the Gedit Snippets plugin. I added a custom snippet for the sh
language that shall contain a Bash variable like $LINENO
. It looks like this simplified example:
my_command || ( echo "Error on line $LINENO" ; exit 1 )
However, if I let the plugin insert this snippet above, it tries to evaluate the $LINENO
itself and removes it from the inserted code, so that I only get this result:
my_command || ( echo "Error on line " ; exit 1 )
Is there a way to make Gedit Snippets simply insert $LINENO
literally, instead of trying to evaluate it?