Busybox tr on Turris Omnia 6.4.4

Hello friends
I need help in proving my sanity.
What do you get with the following command on your Turris Omnia?

uname -s | tr '[:upper:]' '[:lower:]'


Turris Omnia | TurrisOS 6.4.4

Haha :smiley:

# uname -s | tr '[:upper:]' '[:lower:]'
Linlx
$ echo "A B C D E F G H I J K L M N O P Q R T S T U V W X Y Z" | tr '[:upper:]' '[:lower:]'
A B C D E F G H I J K L M N O P Q R T S T U V W X Y Z

$ echo "a b c d e f g h i j k l m n o p q r t s t u v w x y z" | tr '[:upper:]' '[:lower:]'
a b c d e f g h i j k l m n o w q r t s t l v w x y z
                                          ^
$ echo "a b c d e f g h i j k l m n o p q r t s t u v w x y z" | tr '[:upper:]' '[:9ower:]'
a b c d e f g h i j k l m n o w q r t s t 9 v w x y z
                                          ^
echo "a b c d e f g h i j k l m n o p q r t s t u v w x y z" | tr '[:apper:]' '[:9ower:]'
9 b c d e f g h i j k l m n o w q r t s t u v w x y z
^

The same as @peci1 :wink:

The utils from busybox have many issues compared to “normal ones”, IMHO. Too cut down for a powerful device like Omnia and sometimes more buggy, too.

I’m lucky there is a coreutils-tr package:

$ opkg install coreutils-tr
$ uname -s | tr '[:upper:]' '[:lower:]'
linux
2 Likes

I wonder what it does mean in connection of previous result of my test of tr command :frowning:

root@TOjp:~# opkg install coreutils
Package coreutils (8.32-6) installed in root is up to date.
root@TOjp:~#

How it could be that even though version of coreutils is, as stated, up to date, that result of test was different?

I don’t know what the coreutils package does.

opkg files coreutils returns nothing.

But there are over a hundred opkg find 'coreutils-*' packages available.

$ ls -l $(command -v tr)
/usr/bin/tr -> ../../bin/busybox

$ opkg install coreutils-tr

$ ls -l $(command -v tr)
/usr/bin/tr -> /usr/libexec/tr-coreutils

I don’t know whats happening here.

Turris Omnia from Indiegogo campaign, turris-version: 6.4.4, branch: hbs

As of today, it seems to me that all coreutils are installed:

root@TOjp:~# opkg list | grep coreut
coreutils - 8.32-6
coreutils-base64 - 8.32-6
coreutils-sort - 8.32-6
coreutils-stat - 8.32-6

root@TOjp:~# opkg list-installed | grep coreut
coreutils - 8.32-6
coreutils-base64 - 8.32-6
coreutils-sort - 8.32-6
coreutils-stat - 8.32-6

I don’t see coreutils-tr, neither any other coreutils* package :frowning:

Could somebody from team explain, please? (eg. @miska ?!?)

Edit: Sorry, forget to do “opkg update”, need test again.

Edit 2: After installing coreutils-tr (and all remaining coreutils-* as well) I got, at last, correct output of tr command - i.e. “linux”. Sorry again.

Did you opkg update before?

Always do. The package list works like a cache and is empty after a few hours.

Mea culpa - I didn’t “opkg update” before testing. Will try again.

For me:

root@turris:~# opkg list | grep coreut | wc -l
123

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.