I wrote:
> #!/bin/sh
> dummy='''
> '
> exec python -O "$0" ${1+"$@"}
> '
> '''
> # Python code goes here
Actually, we don't need the dummy variable:
#!/bin/sh
''':'
exec python -O "$0" ${1+"$@"}
' '''
import sys; print sys.argv
Or for even more fun:
#!/bin/sh
''':'
exec python -O "$0" ${1+"$@"}
' '''
import sys, os; os.execvp('guile', ['guile', '-s']+sys.argv)
'''
!#
(format #t "~S\n" (program-arguments))
;'''
paul
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils