Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: aus9 on January 05, 2026, 11:41:51 PM

Title: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 05, 2026, 11:41:51 PM
I have a potential TCE that I needed to run make on....because it actually used gawk to generate the script.
So it was not possible to grab a pre-made bash script from the source.

Do you agree that if something is "compiled" on say x86_64 that makes a bash script, the actual script is truly any arch?

I accept there may be differences in some TCE names TC32 vs TC64 vs RPi
that might be needed to provide some functions of that script.

file exe-name returns "Bourne-Again shell script, Unicode text, UTF-8 text executable"
thanks for reading
Title: Re: Are all bash scripts any arch?
Post by: patrikg on January 06, 2026, 02:45:06 AM
It's no bash it's ash(busybox (https://en.wikipedia.org/wiki/Almquist_shell))

https://github.com/tinycorelinux/Core-scripts
Title: Re: Are all bash scripts any arch?
Post by: aus9 on January 06, 2026, 07:24:25 AM
I am confused by your reply due to my poor communicating skills....lets try again

the head of a potential TCE submisison reads
Quote
#!/usr/bin/env bash

running file against the /usr/local/bin/executable claims its a "Bourne-Again shell script, Unicode text, UTF-8 text executable"

I am not talking about TCB....is that clearer?
Title: Re: Are all bash scripts any arch?
Post by: Paul_123 on January 06, 2026, 08:21:16 AM
I would not make that assumption, unless you have checked.
Title: Re: Are all bash scripts any arch?
Post by: aus9 on January 06, 2026, 09:17:04 AM
excellent Paul_123....thats what I was looking for.


@Rich
Please mark as solved
Title: Re: [Solved] Are all bash scripts any arch?
Post by: Rich on January 06, 2026, 09:38:21 AM
Hi aus9
... running file against the /usr/local/bin/executable claims its a "Bourne-Again shell script, Unicode text, UTF-8 text executable" ...
That part might concern me a bit. If an end users environment isn't set up
to provide UTF-8 support, will your extension still run correctly?

Marked as solved.
Title: Re: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 06, 2026, 06:17:12 PM
Quote
If an end users environment isn't set up to provide UTF-8 support, will your extension still run correctly?

well I am testing the product which is translate-shell  and I mention this in the info file (subject to change)

Optional or NEEDED TCEs depend on how you wish to use this TCE
                1) You must be on a terminal that support UTF-8 to display any
                   font you input or get as a translation.
                2) You need a font TCE to display any input or output font
                   Remember to restart terminal if you load a new font TCE
SNIP

Code: [Select]
trans -b
SNIP
我在哪里      # you need wqy-zenhei-fonts-ttf to see font
where am i
Title: Re: [Solved] Are all bash scripts any arch?
Post by: Rich on January 06, 2026, 08:09:49 PM
Hi aus9
Sorry, I wasn't clear. I was referring whether the scripts lines could
be read and executed. The  file  command inferred the the script
itself was written using UTF-8 characters.

Title: Re: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 06, 2026, 09:10:03 PM
I am a dumbo....are you suggesting members need locale setup to use the possible TCE?
Title: Re: [Solved] Are all bash scripts any arch?
Post by: Rich on January 06, 2026, 11:39:34 PM
Hi aus9
I believe that's a distinct possibility.
Title: Re: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 07, 2026, 12:30:22 AM
thanks
Title: Re: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 07, 2026, 05:40:49 PM
Hi Rich
I am posting things about this script test here at your request
I disagree with your assessment as I think both of us have been tricked with what is loading. I now believe that somehow the booting process....is reading elements from more that one boot list

Here is my alleged proof that you are mislead. That is...mylocale is still loading when I told it not to. Image expires in one month
https://i.postimg.cc/B6wNTV6L/gremlin2.png
1) onboot.lst has no mention of mylocale*
2) bootloader string has no mention of UTF setting nor timezone setting
3) but apps onboot maintenance tells a different story
4) ls installed command confirms that mylocale has loaded.....and that means we are tricked by the bash script
ie  I have yet to confirm that script fails

FWIW here is my new bootloader.....and I am booting 17b
Quote
menuentry "17a" {
linux /boot/vmlinuz17 home=LABEL=tc1 tce=/mnt/sdb1/17/tce waitusb=10 quiet lang=en_AU.UTF-8 tz=Australia/Perth blacklist=snd-hda-intel nozswap
initrd /boot/amd-ucode.img /boot/rootfs17.gz /boot/modules17.gz
}

menuentry "17b" {
linux /boot/vmlinuz17 home=LABEL=tc1 tce=/mnt/sdb1/17/tce waitusb=10 quiet blacklist=snd-hda-intel nozswap
initrd /boot/amd-ucode.img /boot/rootfs17.gz /boot/modules17.gz
}

and I have only just discovered that I can no longer use a boot code for lst=name.lst
Title: Re: [Solved] Are all bash scripts any arch?
Post by: aus9 on January 07, 2026, 08:06:37 PM
Ok I was wrong again.  In the past....at my own risk.....I would have only one TC but this time I created a dir called 17 and I was editting the 16 onboot.lst.....YIKES
I failed to read my own bootloader that said I am supposed to edit files under
tce=/mnt/sdb1/17/tce

sorry for my bad testing
I will remove the image links

anyhow lets confirm its a true UTF bash script shall we
Code: [Select]
locale a
locale: unknown name "a"
tc@box:~$ trans -b
J'adore linux
[WARNING] Connection timed out. Retrying IPv4 connection.
I love linux

Me thinks we have tested this truly now