Tiny Core Linux

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

Title: appbrowser-cli patch
Post by: batnas on March 26, 2010, 09:46:46 AM
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, 10:18:41 AM
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, 10:24:07 AM
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, 11:54:26 AM
Hi, confirmed and fixed, thanks for reporting.
Title: Re: appbrowser-cli patch
Post by: batnas on March 26, 2010, 01:22:59 PM
Your welcome ;)