Deleted Added
full compact
jobs.c (18018) jobs.c (18954)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * $Id: jobs.c,v 1.6 1996/09/03 13:35:09 peter Exp $
36 * $Id: jobs.c,v 1.7 1996/09/03 14:15:52 peter Exp $
37 */
38
39#ifndef lint
40static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
41#endif /* not lint */
42
43#include <fcntl.h>
44#include <signal.h>

--- 1022 unchanged lines hidden (view full) ---

1067 if (--cmdnleft > 0)
1068 *q++ = '{';
1069 subtype = *p++;
1070 } else if (c == '=' && subtype != 0) {
1071 *q++ = "}-+?="[(subtype & VSTYPE) - VSNORMAL];
1072 subtype = 0;
1073 } else if (c == CTLENDVAR) {
1074 *q++ = '}';
37 */
38
39#ifndef lint
40static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
41#endif /* not lint */
42
43#include <fcntl.h>
44#include <signal.h>

--- 1022 unchanged lines hidden (view full) ---

1067 if (--cmdnleft > 0)
1068 *q++ = '{';
1069 subtype = *p++;
1070 } else if (c == '=' && subtype != 0) {
1071 *q++ = "}-+?="[(subtype & VSTYPE) - VSNORMAL];
1072 subtype = 0;
1073 } else if (c == CTLENDVAR) {
1074 *q++ = '}';
1075 } else if (c == CTLBACKQ | c == CTLBACKQ+CTLQUOTE)
1075 } else if (c == CTLBACKQ || c == CTLBACKQ+CTLQUOTE)
1076 cmdnleft++; /* ignore it */
1077 else
1078 *q++ = c;
1079 if (--cmdnleft <= 0) {
1080 *q++ = '.';
1081 *q++ = '.';
1082 *q++ = '.';
1083 break;
1084 }
1085 }
1086 cmdnextc = q;
1087}
1076 cmdnleft++; /* ignore it */
1077 else
1078 *q++ = c;
1079 if (--cmdnleft <= 0) {
1080 *q++ = '.';
1081 *q++ = '.';
1082 *q++ = '.';
1083 break;
1084 }
1085 }
1086 cmdnextc = q;
1087}