So I try to fix it - because it's *urgent* - they want to use tuxpaint. After moving and fiddling with the ~/.config directory and try one or two other things, it turns out it is as easy as removing the session cache.
rm -rf ~/.cache/sessions/*
rm -rf ~/.cache/sessions/*
>cat test.sh
#!/bin/sh
/usr/local/bin/p4 sync -n
rc=$?
echo "Returncode $rc"
>cat test2
#!/bin/sh
# \
exec tclsh "$0" "$@"
set rc [catch {exec -- /usr/local/bin/p4 sync -n} out]
puts "Return code: \"$rc\""
puts "out: \"$out\""
>./test2
Return code: "1"
out: "File(s) up-to-date."
>./test.sh
File(s) up-to-date.
Returncode 0
>/usr/local/bin/p4 sync -n
File(s) up-to-date.
>echo $?
0
>/usr/local/bin/p4 -s sync -n
error: File(s) up-to-date.
exit: 0
"In general, you should not rely on a command exiting non-zero on "failure". Instead, use the global -s flag to help interpret the command output -- and parse that output in your scripts. Possible tags with the -s flag include info:, info1:, info2:, error:, and text:"
# sed -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update
# freebsd-update upgrade -r 9.0-RC2
--- /usr/local/home/bjoern.henkel/git-p4.org 2011-10-27 11:56:05.351331262 +0900
+++ /usr/libexec/git-core/git-p4 2011-10-27 16:24:12.623302361 +0900
@@ -413,6 +413,14 @@
continue
logMessage += log
+
+ # I want to keep the original date when importing from git
+ logMessage += "\n"
+ logMessage += "Original commit date: "
+ cmd = 'git show -s --pretty="%ai (%ar) " ' + commit
+ logMessage += read_pipe(cmd)
+ logMessage += "commit: %s" % commit
+
return logMessage
def extractSettingsFromNotes(commit):
--- /home/bjoern.henkel/gitk.org 2011-10-26 15:44:27.096698500 +0900
+++ /usr/bin/gitk 2011-10-26 15:44:57.143573500 +0900
@@ -2367,7 +2367,7 @@
}
}
- if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
+ if {[info exists geometry(state)] && $geometry(state) eq "normal"} {
wm state . $geometry(state)
}
defvar fstab /files/etc/fstab
set $fstab/01/spec tmpfs
set $fstab/01/file /dev/shm
set $fstab/01/vfstype tmpfs
set $fstab/01/opt defaults
set $fstab/01/dump 0
set $fstab/01/passno 0
save
set $fstab/*[spec = 'tmpfs'][file = '/dev/shm']/opt size
set $fstab/*[spec = 'tmpfs'][file = '/dev/shm']/opt/value 12G
match *[spec='tmpfs'][file = '/dev/shm']
augeas{"Add tmpfs for case ${caseusername}@${hostname}":
context => "/files/etc/fstab",
changes => [
"set 01/spec tmpfs",
"set 01/file /dev/shm",
"set 01/vfstype tmpfs",
"set 01/opt size",
"set 01/opt value ${shmem}",
"set 01/dump 0",
"set 01/passno 0",
],
onlyif => "match *[spec='tmpfs'][file = '/dev/shm'] size == 0",
}
augeas{"change tmpfs size for ${caseusername}@${hostname} to ${shmem}":
context => "/files/etc/fstab",
changes => [
"set *[spec = 'tmpfs'][file = '/dev/shm']/opt size",
"set *[spec = 'tmpfs'][file = '/dev/shm']/opt/value ${shmem}",
],
require => Augeas["Add tmpfs for case ${caseusername}@${hostname}"],
}
have_64bit_userland() {
file -L /bin/sh | grep -q 64-bit
}