Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: Greg Erskine on April 09, 2015, 05:36:43 PM

Title: Why tce and tce-ab scripts?
Post by: Greg Erskine on April 09, 2015, 05:36:43 PM
Hello,

I am using 3.18.9-piCore+ and have noticed that there are 2 scripts that are almost identical, tce and tce-ab. From what I understand the name of this program has gone from ab to tce to tce-ab so should tce still be included and if it is, shouldn't tce and tce-ab be identical?

Code: [Select]
$ diff tce tce-ab
--- tce
+++ tce-ab
@@ -46,19 +46,15 @@
 }

 displayDepends(){
-  tce-fetch.sh "$EXTN".dep 2>/dev/null
-  if [ "$?" == 0 ]; then
-       less "$EXTN".dep
-       rm "$EXTN".dep
-  fi
+  tce-fetch.sh "$EXTN".dep
+  less "$EXTN".dep
+  rm "$EXTN".dep
 }

 displayTree(){
-  tce-fetch.sh "$EXTN".tree 2>/dev/null
-  if [ "$?" == 0 ]; then
-       less "$EXTN".tree
-       rm "$EXTN".tree
-  fi
+  tce-fetch.sh "$EXTN".tree
+  less "$EXTN".tree
+  rm "$EXTN".tree
 }

regards
Greg
Title: Re: Why tce and tce-ab scripts?
Post by: curaga on April 10, 2015, 03:15:17 AM
Indeed, one should be a symlink to the other. Thanks for reporting.