Other Options in Hash Bang

For a CGI scrict I need as Hash Bang

#!/usr/opt/bin/tclsh -encoding utf-8

How do I it?

A bad solution, because I want to give the path to the interpreter, is

#!/bin/sh
# the next line restarts using tclsh \
exec tclsh -encoding utf-8 "$0" ${1+"$@"}

Thanks for any hint!

UPDATE: it seems, I can give the full path to exec ... :)
 
Back
Top