FreeBSD Bugzilla – Attachment 15111 Details for
Bug 28109
[PATCH] Add "kill -s" to tcsh builtin for doc and POSIX compatibility
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.29 KB, created by
Mark Peek
on 2001-06-12 23:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mark Peek
Created:
2001-06-12 23:50:00 UTC
Size:
2.29 KB
patch
obsolete
>Index: contrib/tcsh/sh.proc.c >=================================================================== >RCS file: /home/ncvs/src/contrib/tcsh/sh.proc.c,v >retrieving revision 1.1.1.1.2.2 >diff -u -r1.1.1.1.2.2 sh.proc.c >--- contrib/tcsh/sh.proc.c 2001/03/05 05:50:09 1.1.1.1.2.2 >+++ contrib/tcsh/sh.proc.c 2001/06/12 22:20:36 >@@ -1524,6 +1524,7 @@ > { > register int signum, len = 0; > register char *name; >+ Char *sigptr; > extern int T_Cols; > extern int nsig; > >@@ -1544,17 +1545,26 @@ > xputchar('\n'); > return; > } >- if (Isdigit(v[0][1])) { >- signum = atoi(short2str(v[0] + 1)); >+ sigptr = &v[0][1]; >+ if (v[0][1] == 's') { >+ if (v[1]) { >+ v++; >+ sigptr = &v[0][0]; >+ } else { >+ stderror(ERR_NAME | ERR_TOOFEW); >+ } >+ } >+ if (Isdigit(*sigptr)) { >+ signum = atoi(short2str(sigptr)); > if (signum < 0 || signum > (MAXSIG-1)) > stderror(ERR_NAME | ERR_BADSIG); > } > else { > for (signum = 0; signum <= nsig; signum++) > if (mesg[signum].iname && >- eq(&v[0][1], str2short(mesg[signum].iname))) >+ eq(sigptr, str2short(mesg[signum].iname))) > goto gotsig; >- setname(short2str(&v[0][1])); >+ setname(short2str(sigptr)); > stderror(ERR_NAME | ERR_UNKSIG); > } > gotsig: >Index: contrib/tcsh/tcsh.man >=================================================================== >RCS file: /home/ncvs/src/contrib/tcsh/tcsh.man,v >retrieving revision 1.1.1.3.2.2 >diff -u -r1.1.1.3.2.2 tcsh.man >--- contrib/tcsh/tcsh.man 2001/03/05 05:50:10 1.1.1.3.2.2 >+++ contrib/tcsh/tcsh.man 2001/06/12 22:20:37 >@@ -2851,8 +2851,11 @@ > .B kill \fR[\fB\-\fIsignal\fR] \fB%\fIjob\fR|\fIpid\fR ... > .PD 0 > .TP 8 >+.B kill \fR[\fB\-s \fIsignal\fR] \fB%\fIjob\fR|\fIpid\fR ... >+.TP 8 > .B kill \-l >-The first form sends the specified \fIsignal\fR (or, if none is given, >+The first and second forms sends the specified \fIsignal\fR (or, if none >+is given, > the TERM (terminate) signal) to the specified jobs or processes. > \fIjob\fR may be a number, a string, `', `%', `+' or `\-' as described > under \fBJobs\fR. >@@ -2862,7 +2865,7 @@ > to the current job. If the signal being sent is TERM (terminate) > or HUP (hangup), then the job or process is sent a > CONT (continue) signal as well. >-The second form lists the signal names. >+The third form lists the signal names. > .PD > .ig \" Obsolete tcsh command > .TP 8
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28109
: 15111