Suggested port command enhancement?
Rainer Müller
raimue at macports.org
Thu Jun 5 16:34:55 PDT 2008
paul beard wrote:
> I don't see the difference?
>
> [/Users/paul]# head -4 /opt/local/bin/port /opt/local/bin/portmirror
> ==> /opt/local/bin/port <==
> #!/bin/sh
> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
> c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \
> exec /usr/bin/tclsh "$0" "$@"
> # port.tcl
>
> ==> /opt/local/bin/portmirror <==
> #!/bin/sh
> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
> c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 \
> exec /usr/bin/tclsh "$0" "$@"
> # portmirror.tcl
Sorry, I was unclear, it is not a "missing" backslash. There is a
trailing whitespace after the backslash in portmirror. The backslash has
to be the last character on the line, otherwise Tcl doesn't see the next
line as continuation of the comment.
Tcl interprets the backslash as an escape for the space, not for the
newline character, so "missing" was really misleading here. It's hard to
see the difference when looking at the output of head or cat.
Fixed in r37393 for the release_1_6 branch.
Hope this is clear now?
Rainer
More information about the macports-users
mailing list