Can I use a variable content as a shebang? – unix.stackexchange.com

I have a shell script in which I want to add a shebang. Given a variable defined as follows: SHEBANG="#!/bin/sh" My question is if I can use that variable in another script like this: $SHEBANG # ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Can I use a variable content as a shebang? – unix.stackexchange.com"