Deleted Added
full compact
var.c (99110) var.c (100663)
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

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

35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 5/4/95";
40#endif
41#endif /* not lint */
42#include <sys/cdefs.h>
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

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

35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 5/4/95";
40#endif
41#endif /* not lint */
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/bin/sh/var.c 99110 2002-06-30 05:15:05Z obrien $");
43__FBSDID("$FreeBSD: head/bin/sh/var.c 100663 2002-07-25 10:47:38Z tjr $");
44
45#include <unistd.h>
46#include <stdlib.h>
47
48/*
49 * Shell variables.
50 */
51

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

538 char *name;
539 char *p;
540 char *cmdname;
541 int ch, values;
542 int flag = argv[0][0] == 'r'? VREADONLY : VEXPORT;
543
544 cmdname = argv[0];
545 optreset = optind = 1;
44
45#include <unistd.h>
46#include <stdlib.h>
47
48/*
49 * Shell variables.
50 */
51

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

538 char *name;
539 char *p;
540 char *cmdname;
541 int ch, values;
542 int flag = argv[0][0] == 'r'? VREADONLY : VEXPORT;
543
544 cmdname = argv[0];
545 optreset = optind = 1;
546 opterr = 0;
546 values = 0;
547 while ((ch = getopt(argc, argv, "p")) != -1) {
548 switch (ch) {
549 case 'p':
550 values = 1;
551 break;
552 case '?':
553 default:

--- 265 unchanged lines hidden ---
547 values = 0;
548 while ((ch = getopt(argc, argv, "p")) != -1) {
549 switch (ch) {
550 case 'p':
551 values = 1;
552 break;
553 case '?':
554 default:

--- 265 unchanged lines hidden ---