print.c (88602) | print.c (88668) |
---|---|
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 88602 2001-12-29 00:18:16Z joe $"; | 42 "$FreeBSD: head/bin/ls/print.c 88668 2001-12-29 10:13:43Z 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> --- 462 unchanged lines hidden (view full) --- 513 c[1] = cs[2 * i + 1]; 514 } 515 for (j = 0; j < 2; j++) { 516 /* Legacy colours used 0-7 */ 517 if (c[j] >= '0' && c[j] <= '7') { 518 colors[i].num[j] = c[j] - '0'; 519 if (!legacy_warn) { 520 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> --- 462 unchanged lines hidden (view full) --- 513 c[1] = cs[2 * i + 1]; 514 } 515 for (j = 0; j < 2; j++) { 516 /* Legacy colours used 0-7 */ 517 if (c[j] >= '0' && c[j] <= '7') { 518 colors[i].num[j] = c[j] - '0'; 519 if (!legacy_warn) { 520 fprintf(stderr, |
521 "warn: LSCOLOURS should use " | 521 "warn: LSCOLORS should use " |
522 "characters a-h instead of 0-9 (" 523 "see the manual page)\n"); 524 } 525 legacy_warn = 1; 526 } else if (c[j] >= 'a' && c[j] <= 'h') 527 colors[i].num[j] = c[j] - 'a'; 528 else if (c[j] >= 'A' && c[j] <= 'H') { 529 colors[i].num[j] = c[j] - 'A'; --- 93 unchanged lines hidden --- | 522 "characters a-h instead of 0-9 (" 523 "see the manual page)\n"); 524 } 525 legacy_warn = 1; 526 } else if (c[j] >= 'a' && c[j] <= 'h') 527 colors[i].num[j] = c[j] - 'a'; 528 else if (c[j] >= 'A' && c[j] <= 'H') { 529 colors[i].num[j] = c[j] - 'A'; --- 93 unchanged lines hidden --- |