#define _XOPEN_SOURCE 600

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
	if (argc > 0) {
		char *newname = strdup("/var/tmp/macports/opt/local/libexec/macports/bin/tclsh8.6");
		if (newname != NULL) {
			argv[0] = newname;
		}
		/* Ignore errors and just leave argv[0] the same, hoping that the
		 * executed program will still work fine. */
	}
	execvp("/var/tmp/macports/opt/local/libexec/macports/bin/tclsh8.6", argv);
	perror("execvp('/var/tmp/macports/opt/local/libexec/macports/bin/tclsh8.6', argv)");
	return EXIT_FAILURE;
}
