FreeBSD Bugzilla – Attachment 10040 Details for
Bug 20291
[PATCH] ls refuses to output color to anything that's not a tty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 995 bytes, created by
mike ryan
on 2000-07-29 20:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mike ryan
Created:
2000-07-29 20:10:02 UTC
Size:
995 bytes
patch
obsolete
>Index: bin/ls/ls.c >=================================================================== >RCS file: /home/ncvs/src/bin/ls/ls.c,v >retrieving revision 1.32.2.3 >diff -c -r1.32.2.3 ls.c >*** bin/ls/ls.c 2000/07/12 06:19:14 1.32.2.3 >--- bin/ls/ls.c 2000/07/29 18:19:19 >*************** >*** 120,125 **** >--- 120,126 ---- > char *ansi_fgcol; /* ANSI sequence to set foreground colour */ > char *ansi_coloff; /* ANSI sequence to reset colours */ > #endif >+ int num_opt_G = 0; /* number of -G flags */ > > int rval; > >*************** >*** 202,208 **** > fts_options |= FTS_COMFOLLOW; > break; > case 'G': >! if (isatty(STDOUT_FILENO)) > #ifdef COLORLS > if (tgetent(termcapbuf, getenv("TERM")) == 1) { > ansi_fgcol = tgetstr("AF", &bp); >--- 203,209 ---- > fts_options |= FTS_COMFOLLOW; > break; > case 'G': >! if (num_opt_G++ || isatty(STDOUT_FILENO)) > #ifdef COLORLS > if (tgetent(termcapbuf, getenv("TERM")) == 1) { > ansi_fgcol = tgetstr("AF", &bp);
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 20291
: 10040