Shebang command line parameters

I've got a project all set up to swap the shebang when I publish. It mostly works fine, but it is also preserving the cmd line options of my local files.

For example local file contains

Code Sample #!c:/perl/bin/perl

the shebang correctly becomes, what it should be

Code Sample #!/usr/bin/perl -X

But if my local file contains

Code Sample #!c:/perl/bin/perl -d

the server file will become

Code Sample #!/usr/bin/perl -X -d

So it is preserving the cmd line options from the local file. Is this by design? Can it be turned off?

Thanks again for the excellent support!

Answer:
Yes the command line is preserved. Note however that the -X parameter is not added.

29.04.2004. 21:12

This article hasn't been commented yet.

Write a comment

:

:

:


6 + 8 =