I was wondering if it's somehow possible for a script to pass itself as an argument to its interpreter, like so:

Code:
#!/usr/local/bin/bochs -q -f $0
I would've thought that this would work, since the shell should append the absolute filename of the script...
Code:
#!/usr/local/bin/bochs -q -f
but apparently it doesn't as the command line received doesn't have the script file in it at all.