summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2005-10-26 21:15:51 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2005-10-26 21:15:51 +0000
commit3aafcdb5aaaf52da1b6fed1199ac4b6cd69307e7 (patch)
tree7966b2c2770a5fbd4baf501668637168bb5c7f22 /gnu/usr.bin
parent0fcef6909b031e7dbe5536159bc0ec4803eaec64 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/grep/grep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/grep/grep.c b/gnu/usr.bin/grep/grep.c
index 04a166720420..1684a820b670 100644
--- a/gnu/usr.bin/grep/grep.c
+++ b/gnu/usr.bin/grep/grep.c
@@ -1359,16 +1359,16 @@ main (int argc, char **argv)
if (program_name && strrchr (program_name, '/'))
program_name = strrchr (program_name, '/') + 1;
+ if (program_name[0] == 'b' && program_name[1] == 'z') {
+ BZflag = 1;
+ program_name += 2;
+ }
#if HAVE_LIBZ > 0
- if (program_name[0] == 'z') {
+ else if (program_name[0] == 'z') {
Zflag = 1;
++program_name;
}
#endif
- if (program_name[0] == 'b') {
- BZflag = 1;
- ++program_name;
- }
#if defined(__MSDOS__) || defined(_WIN32)
/* DOS and MS-Windows use backslashes as directory separators, and usually