Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: batnas on March 26, 2010, 12:46:46 PM

Title: appbrowser-cli patch
Post by: batnas on March 26, 2010, 12:46:46 PM
Hi

I found a bug in appbrowser-cli; it cant search.

The problem is on line 498:
Code: [Select]
snprintf(tmppath,PATH_MAX,"/usr/bin/search.sh tcz %s 2>/dev/null",searchmsg);
I have fixed  it by changing the line to:
Code: [Select]
snprintf(tmppath,PATH_MAX,"/usr/bin/search.sh %s >>/dev/null",searchmsg); 8)

It works. I have compiled it using the build-app-cli.sh script after installed compiletc.tcz

It would be cool if it could be submitted, as i use appbrowser-cli a lot on MC, and missing a search function is very annoying ;)

\\Batnas
Title: Re: appbrowser-cli patch
Post by: jls on March 26, 2010, 01:18:41 PM
there is a cli version of appbrowser in tc base, it's called ab
Title: Re: appbrowser-cli patch
Post by: batnas on March 26, 2010, 01:24:07 PM
yes, but i like the layout of appbrowser-cli. Can you read Files and Dep's in ab??

And i'm running MC


\\Batnas
Title: Re: appbrowser-cli patch
Post by: curaga on March 26, 2010, 02:54:26 PM
Hi, confirmed and fixed, thanks for reporting.
Title: Re: appbrowser-cli patch
Post by: batnas on March 26, 2010, 04:22:59 PM
Your welcome ;)