2017-05-10 15:17 GMT+02:00 Tony Papadimitriou: > Now, if the same command is given with the –R option to the same repo (e.g., > FOSSIL SEA –R repo.fossil) the results are different, and somewhat random.
Indeed! Well, a search without an argument seems little useful, so I would suggest the following patch below (which was probably intended). We can easily see that when g.argc==2, the blob_init() will get a random argument, ist just depends what the option parsing left there. Regards, Jan Nijtmans --- src/search.c +++ src/search.c @@ -597,11 +597,11 @@ }else{ width = -1; } db_find_and_open_repository(0, 0); - if( g.argc<2 ) return; + if( g.argc<3 ) return; blob_init(&pattern, g.argv[2], -1); for(i=3; i<g.argc; i++){ blob_appendf(&pattern, " %s", g.argv[i]); } (void)search_init(blob_str(&pattern),"*","*","...",SRCHFLG_STATIC); _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users