3
if [ $# -eq 3 -a "$2" = '-d' ]; then
5
elif [ $# -ne 1 ]; then
6
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10
-patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11
-unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
13
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18
# DP: Don't mishandle negative pod in `kill' builtin
20
--- builtins/kill.def~ Mon Oct 15 19:23:32 2001
21
+++ builtins/kill.def Sat Apr 6 21:12:55 2002
26
+ /* Use the entire argument in case of minus sign presence. */
27
if (*word && legal_number (word, &pid_value) && (pid_value == (pid_t)pid_value))
29
- /* Use the entire argument in case of minus sign presence. */
30
pid = (pid_t) pid_value;
32
- if (kill_pid (pid, signal, 0) < 0)
33
+ if ((pid < -1 ? kill_pid (-pid, signal, 1) : kill_pid (pid, signal, 0)) < 0)