Deleted Added
full compact
print.c (88587) print.c (88588)
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Fischbein.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

34 * SUCH DAMAGE.
35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)print.c 8.4 (Berkeley) 4/17/94";
40#else
41static const char rcsid[] =
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Fischbein.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

34 * SUCH DAMAGE.
35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)print.c 8.4 (Berkeley) 4/17/94";
40#else
41static const char rcsid[] =
42 "$FreeBSD: head/bin/ls/print.c 88587 2001-12-28 19:26:06Z joe $";
42 "$FreeBSD: head/bin/ls/print.c 88588 2001-12-28 19:27:30Z joe $";
43#endif
44#endif /* not lint */
45
46#include <sys/param.h>
47#include <sys/stat.h>
48
49#include <err.h>
50#include <errno.h>

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

491 c[1] = cs[2 * i + 1];
492 }
493 for (j = 0 ; j < 2 ; j++) {
494 /* Legacy colours used 0-7 */
495 if (c[j] >= '0' && c[j] <= '7') {
496 colors[i].num[j] = c[j] - '0';
497 if (!legacy_warn) {
498 fprintf(stderr,
43#endif
44#endif /* not lint */
45
46#include <sys/param.h>
47#include <sys/stat.h>
48
49#include <err.h>
50#include <errno.h>

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

491 c[1] = cs[2 * i + 1];
492 }
493 for (j = 0 ; j < 2 ; j++) {
494 /* Legacy colours used 0-7 */
495 if (c[j] >= '0' && c[j] <= '7') {
496 colors[i].num[j] = c[j] - '0';
497 if (!legacy_warn) {
498 fprintf(stderr,
499 "warn: colors are now defined "
500 "using a-h instead of 0-9. "
501 "see manual page.\n");
499 "warn: LSCOLOURS should use "
500 "characters a-h instead of 0-9 ("
501 "see the manual page)\n");
502 }
503 legacy_warn = 1;
504 } else if (c[j] >= 'a' && c[j] <= 'h')
505 colors[i].num[j] = c[j] - 'a';
506 else if (c[j] >= 'A' && c[j] <= 'H') {
507 colors[i].num[j] = c[j] - 'A';
508 colors[i].bold = 1;
509 } else if (tolower((unsigned char)c[j] == 'x'))

--- 43 unchanged lines hidden ---
502 }
503 legacy_warn = 1;
504 } else if (c[j] >= 'a' && c[j] <= 'h')
505 colors[i].num[j] = c[j] - 'a';
506 else if (c[j] >= 'A' && c[j] <= 'H') {
507 colors[i].num[j] = c[j] - 'A';
508 colors[i].bold = 1;
509 } else if (tolower((unsigned char)c[j] == 'x'))

--- 43 unchanged lines hidden ---