* The latest commit to add new keybindings
@ 2005-09-24 1:31 Junio C Hamano
2005-09-26 0:26 ` Paul Mackerras
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2005-09-24 1:31 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git
Paul, I was looking at the gitk repository thinking it's about
time for me to slurp your changes in, and have two questions.
The 'new keybindings' commit from Robert Suetterlin changes the
beginning of gitk to:
--- a/gitk
+++ b/gitk
@@ -1,6 +1,6 @@
#!/bin/sh
# Tcl ignores the next line -*- tcl -*- \
-exec wish "$0" -- "${1+$@}"
+exec wish8.4 "$0" -- "${1+$@}"
Do you actually require 8.4, or any reasonably recent wish would
do? The reason I ask is that Debian side (debian/control)
explicitly depends on 'tk8.4' but RPM side (git-core.spec.in)
just says 'tk'. I could change the RPM side to also require 8.4
but I do not have ready access to any RPM machine to test it
with, so if that is not needed I'd rather not touch spec.in
file.
Another thing, which is unrelated to Robert's change, is that I
suspect the exec command line should be like either one of these
(the first one is probably more old-fashioned):
exec wish "$0" -- ${1+"$@"}
exec wish "$0" -- "$@"
With "${1+$@}", you are passing an empty parameter after '--'
when gitk itself receives no parameter. Maybe it is intended,
maybe not...
prompt$ cat >one.sh <<\EOF
#!/bin/sh
exec ./two.sh "$0" -- "${1+$@}"
EOF
prompt$ cat >two.sh <<\EOF
#!/bin/sh
echo "\$0 is $0"
echo "\$# is $#"
i=1
for a
do
echo "\$$i is $a"
i=`expr $i + 1`
done
EOF
prompt$ chmod +x one.sh two.sh
prompt$ ./one.sh foo
$0 is /var/tmp/gomi/two.sh
$# is 3
$1 is <./one.sh>
$2 is <-->
$3 is <foo>
prompt$ ./one.sh
$0 is /var/tmp/gomi/two.sh
$# is 3
$1 is <./one.sh>
$2 is <-->
$3 is <>
prompt$ exit
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: The latest commit to add new keybindings
2005-09-24 1:31 The latest commit to add new keybindings Junio C Hamano
@ 2005-09-26 0:26 ` Paul Mackerras
2005-09-26 22:04 ` H. Peter Anvin
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2005-09-26 0:26 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano writes:
> Do you actually require 8.4, or any reasonably recent wish would
> do?
Checking in the change from "wish" to "wish8.4" was a mistake - that
was a change I made for some tests, and I forgot to change it back.
However, gitk does need tk 8.4 or later, since it uses the panedwindow
widget, which tk 8.3 doesn't have. I have tk8.5a2 installed here,
which is nice because it does antialiased fonts, although it is a bit
slower (clock format is much slower because they changed it from being
implemented in C to Tcl).
> With "${1+$@}", you are passing an empty parameter after '--'
> when gitk itself receives no parameter. Maybe it is intended,
> maybe not...
No, it isn't intended, thanks for pointing that out.
Regards,
Paul.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: The latest commit to add new keybindings
2005-09-26 0:26 ` Paul Mackerras
@ 2005-09-26 22:04 ` H. Peter Anvin
2005-09-26 22:30 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2005-09-26 22:04 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Junio C Hamano, git
Paul Mackerras wrote:
> Junio C Hamano writes:
>
>
>>Do you actually require 8.4, or any reasonably recent wish would
>>do?
>
>
> Checking in the change from "wish" to "wish8.4" was a mistake - that
> was a change I made for some tests, and I forgot to change it back.
> However, gitk does need tk 8.4 or later, since it uses the panedwindow
> widget, which tk 8.3 doesn't have. I have tk8.5a2 installed here,
> which is nice because it does antialiased fonts, although it is a bit
> slower (clock format is much slower because they changed it from being
> implemented in C to Tcl).
>
It would be good if the dependency then said tk >= 8.4.
-hpa
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-26 22:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-24 1:31 The latest commit to add new keybindings Junio C Hamano
2005-09-26 0:26 ` Paul Mackerras
2005-09-26 22:04 ` H. Peter Anvin
2005-09-26 22:30 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).