diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 14:15:59 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 14:16:05 +0200 |
commit | 181fcb5d70b1e9408098611c5e97a920352b9669 (patch) | |
tree | 7a13ff8f31d4b889ba201ad49c6e48ed9b9cf001 | |
parent | 13d1a3a44ca969599bf2a30d68bfdafcbea2d114 (diff) | |
download | mblaze-181fcb5d70b1e9408098611c5e97a920352b9669.tar.gz mblaze-181fcb5d70b1e9408098611c5e97a920352b9669.tar.xz mblaze-181fcb5d70b1e9408098611c5e97a920352b9669.zip |
mseq: pass through file names
-rw-r--r-- | mseq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mseq.c b/mseq.c index 5ae5862..fdabcc8 100644 --- a/mseq.c +++ b/mseq.c @@ -1,3 +1,4 @@ +#include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -26,6 +27,10 @@ main(int argc, char *argv[]) char *f; struct blaze822_seq_iter iter = { 0 }; for (i = optind; i < argc; i++) { + if (strchr(argv[i], '/')) { + printf("%s\n", argv[i]); + continue; + } while ((f = blaze822_seq_next(map, argv[i], &iter))) { if (nflag) printf("%ld\n", iter.line-1); |