samedi 31 janvier 2015

How do I pass arguments to the shebang command when executing a script?


If I have my.script such as



#!/bin/bash

blah
blah


and say the bash command accepts a --verbose argument.


How do I execute my.script passing --verbose to bash?


I know I can do bash --verbose my.script on the command line, but I need to be able to run my.script directly.



Aucun commentaire:

Enregistrer un commentaire