set_ has quit [Quit: I thought I saw a puddy-cat...]
set_ has joined #beagle
starblue1 has joined #beagle
vagrantc has quit [Quit: leaving]
starblue has quit [Ping timeout: 258 seconds]
thinkfat_ has joined #beagle
thinkfat has quit [Ping timeout: 252 seconds]
Shadyman has joined #beagle
noahm has quit [Changing host]
noahm has joined #beagle
charlie5 has quit [Ping timeout: 258 seconds]
charlie5 has joined #beagle
buzzmarshall has quit [Quit: Konversation terminated!]
jduchniewicz has quit [*.net *.split]
linkliu59 has quit [*.net *.split]
ketas has quit [*.net *.split]
dyCrazyEd has quit [*.net *.split]
linkliu59 has joined #beagle
jduchniewicz has joined #beagle
dyCrazyEd has joined #beagle
ketas has joined #beagle
michaelo has quit [*.net *.split]
zmatt has quit [*.net *.split]
zmatt_ has joined #beagle
michaelo_ has joined #beagle
ArchismanDey[m] has quit [Ping timeout: 276 seconds]
shoragan[m] has quit [Ping timeout: 276 seconds]
Guest70 has joined #beagle
sicelo has quit [*.net *.split]
troth has quit [*.net *.split]
samnob has quit [*.net *.split]
dinuxbg has quit [*.net *.split]
signal11 has quit [*.net *.split]
russell-- has quit [*.net *.split]
russell-1 has joined #beagle
esteban_ has joined #beagle
dinuxbg_ has joined #beagle
samnob_ has joined #beagle
samnob_ has quit [Changing host]
samnob_ has joined #beagle
troth has joined #beagle
mvaittin has quit [Ping timeout: 252 seconds]
RossSchulman[m] has quit [Ping timeout: 272 seconds]
esteban_ has quit [Client Quit]
sicelo has joined #beagle
sicelo has joined #beagle
sicelo has quit [Changing host]
dyCrazyEd has quit [Ping timeout: 272 seconds]
jduchniewicz has quit [Ping timeout: 272 seconds]
zmatt_ is now known as zmatt
charlie5 has quit [Ping timeout: 245 seconds]
ArchismanDey[m] has joined #beagle
LetoThe2nd has joined #beagle
mvaittin has joined #beagle
lucascastro has quit [Remote host closed the connection]
jduchniewicz has joined #beagle
shoragan[m] has joined #beagle
russell-1 has joined #beagle
russell-1 has quit [Changing host]
russell-1 is now known as russell--
rob_w has joined #beagle
RossSchulman[m] has joined #beagle
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #beagle
Guest70 has quit [Quit: Client closed]
Guest70 has joined #beagle
Guest70 has quit [Quit: Client closed]
florian has joined #beagle
zjason has joined #beagle
dyCrazyEd has joined #beagle
Guest70 has joined #beagle
michaelo_ has quit [Remote host closed the connection]
michaelo has joined #beagle
rob_w has quit [Remote host closed the connection]
otisolsen70 has joined #beagle
Guest70 is now known as neudeepTech
dlan has quit [Ping timeout: 245 seconds]
dlan has joined #beagle
drewfustini has quit []
drewfustini has joined #beagle
Shadyman has quit [Remote host closed the connection]
neudeepTech has quit [Quit: Client closed]
neudeepTech has joined #beagle
neudeepTech has quit [Quit: Client closed]
rob_w has joined #beagle
johanhenselmans has quit [Ping timeout: 245 seconds]
johanhenselmans has joined #beagle
stano has joined #beagle
<stano> "I can't afford unknown efforts." it's a showstopper for the whole pyra to have random noise. Asking 500 preorderers to invest another 100 euro would put the cost of the fix on the beneficiaries.
<zmatt> stano: wrong channel?
<zmatt> this isn't #dragonbox-pyra
<jduchniewicz> had no idea that something like pyra even exists
<jduchniewicz> is it capable of being a phone?
<stano> i think so
<jduchniewicz> I vaguely remember seeing it in hands of one of my open-source geeky friends but that was like 3 years ago
<jduchniewicz> he now moved to using librem phones
<jduchniewicz> anyway I think it is wrong channel :)
<jduchniewicz> unless it is related to beagleboard community
<jduchniewicz> which it is?
<stano> only in HNS's involvement
<stano> guess he's not around?
<jduchniewicz> who is HNS? no such nick as of now
<zmatt> stano: again, wrong channel? this is #beagle which has absolutely nothing to do with the pyra
<zmatt> the only thing in common is that both use a TI SoC
<stano> i'd just suggest HNS suggest that solution
<zmatt> why are you suggesting anything pyra-related *here* in a pyra-unrelated channel?
<zmatt> HNS is not involved in anything to do with the beagleboard either
<jduchniewicz> confused frowning
<zmatt> (also I don't think HNS uses IRC at all)
neudeepTech has joined #beagle
GenTooMan has quit [Ping timeout: 256 seconds]
GenTooMan has joined #beagle
GenTooMan has quit [Excess Flood]
GenTooMan has joined #beagle
GenTooMan has quit [Ping timeout: 272 seconds]
GenTooMan has joined #beagle
GenTooMan has quit [Ping timeout: 256 seconds]
GenTooMan has joined #beagle
buzzmarshall has joined #beagle
florian has quit [Quit: Ex-Chat]
Guest-eMMC has joined #beagle
Guest-eMMC has quit [Ping timeout: 246 seconds]
LetoThe2nd has quit [Quit: Connection closed for inactivity]
lucascastro has joined #beagle
samnob_ has quit [Quit: I'm not smart enuf to edit bouncer.conf]
Guest94 has joined #beagle
<Guest94> Hello Folks.
<Guest94> Do you know when Beagle5 will get launched?
Guest94 has quit [Quit: Ping timeout (120 seconds)]
<stano> he wasn't patient
tigerxyz has joined #beagle
<tigerxyz> I have some trouble to concatenate two variables into one string in bash, please help
rcn-ee_ has quit [Remote host closed the connection]
<zmatt> this isn't #bash, but.... a="$b$c"
<zmatt> (to concatenate $a and $b and put the result in $c)
<zmatt> or a+="$b" to append $b to the end of $a
<tigerxyz> I did all that. It works with s1="123" s2="456", but if s1="123" from $( echo ...), then the results only has "456".
<tigerxyz> There are some differences between s1="123" and s1 is returned from some command output as "123"
<zmatt> I don't know what you mean by that, please share an actual code snippet (using pastebin.com) to explain what you're doing
<tigerxyz> sure, thank you
<zmatt> note that $( ... ) spawns a sub-process and therefore nothing you do inside it can possibly modify a shell variable in the parent script
rcn-ee has joined #beagle
<zmatt> both those uses of $() are necessary. what's in /opt/ncu/sys/ids/uid exactly?
zjason has quit [Read error: Connection reset by peer]
zjason has joined #beagle
<zmatt> the >/dev/null redirection also makes no sense
<zmatt> try something like https://pastebin.com/5SXBnNLK
GenTooMan has quit [Ping timeout: 258 seconds]
<tigerxyz> I tried your script, it doesn't work. I simplified script: https://pastebin.com/x8NVBHiw
<zmatt> define "doesn't work"... your script doesn't work right either evidently, and I'm just trying to guess what your weird use of $(..) is trying to accomplish
<zmatt> though that output you're showing in this last paste isn't possible with the code in that paste so I'm assuming this isn't your actual code
<zmatt> you never did answer what's in /opt/ncu/sys/ids/uid exactly so my code just made a guess at the appropriate way to read it
<tigerxyz> uid is a text file
<tigerxyz> only one line in the text file uid: NCU-41750
<zmatt> again the "results" are not actual results from the script above it
GenTooMan has joined #beagle
<zmatt> also if the uid file contains NCU-41750 then the 5:9 substring (9 characters after the first 5 characters) seems a bit weird, is that really what you intended?
<tigerxyz> I added two echo commands to show results. But the results are what's is displayed on the screen, although it is weird that is shows namename=1750.
<tigerxyz> I only need the last four digits of NCU-41750
<tigerxyz> It is very simply, the uid is NCU-41750, I what to read the file, extract the last four digits and return as "1750name"
<tigerxyz> you can create a file with NCU-12345 in it, then construct a string variable as 2345-ID.
GenTooMan has quit [Ping timeout: 248 seconds]
<zmatt> yes it works fine for me
<tigerxyz> then, something else related my my bash version?
<tigerxyz> I have : GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)
<zmatt> no, it's no doubt related to your code
<tigerxyz> Well, I run your code
LetoThe2nd has joined #beagle
<zmatt> if you run https://pastebin.com/vUTw2C93 what exactly is its output?
<tigerxyz> output: fullname=17501750
<zmatt> no it isn't
<zmatt> if you run that script, unmodified, what is its _full_ output?
GenTooMan has joined #beagle
<zmatt> oh wait
<zmatt> haha I think I know what's happening
<tigerxyz> I copied the output into []: [ fullname=17501750]
<zmatt> your uid file probably contains a DOS lineending so a CR character is ending up in ID and confusing the heck out of you
<tigerxyz> I re-created a file as uid1 with NCU-41750 end with Linux line-return. Now output is [name= id=NCU-41750 ID=1750 fullname=1750]
noahm has quit [Quit: reboot]
<zmatt> then you modified my script since I set name="name" and that output shows name to be blank
<tigerxyz> I just copied your script without editing
noahm has joined #beagle
<tigerxyz> Sorry, I made mistake. I created a new script file, and pasted your code. But I missed the first line. Now it is good:
<tigerxyz> [name=name id=NCU-41750 ID=1750 fullname=1750name]
<tigerxyz> So it was DOS CR ending in the uid file? That is really hard to find. Thank you so much
<zmatt> yes, the concatenation was fine, but it was messing up how the output got printed
<zmatt> since a CR causes the cursor to move to the start of the line
<tigerxyz> But the behavior of bash is also so weird.
<zmatt> not really
<zmatt> this had nothing to do with bash
<zmatt> bash was doing the concatenation just fine
<tigerxyz> Thank you zmatt. You saved my day
giort has joined #beagle
giort has quit [Client Quit]
giort has joined #beagle
tigerxyz has quit [Quit: Client closed]
giort has quit [Quit: giort]
Shadyman has joined #beagle
vagrantc has joined #beagle
rob_w has quit [Quit: Leaving]
otisolsen70 has quit [Quit: Leaving]
giort has joined #beagle
giort has quit [Client Quit]
samnob has joined #beagle
neudeepTech has quit [Quit: Client closed]
samnob has quit [Ping timeout: 256 seconds]
LetoThe2nd has quit [Quit: Connection closed for inactivity]
Stanto has joined #beagle