|
BobHoward posted:tcl is ok for real short stuff but I'm frequently annoyed by it when writing longer scripts that have to manipulate data. I have to do this because xilinx tools use tcl as an embedded scripting language. there is no bridging to anything else, hope u like tcl friendo I've done an awful lot of Vivado scripting - my takeaway is that TCL is actually a p. dece language, except for the fact that it's completely unlike everything else out there. also I'm not the biggest fan of "everything is a string" scripting languages Poopernickel fucked around with this message at 01:32 on Oct 3, 2017 |
![]() |
|
![]()
|
# ¿ Mar 21, 2025 08:54 |
|
Sapozhnik posted:even java is a better scripting language than bash if only there was some kind of java...script....yees
|
![]() |
|
Phobeste posted:vi is built into busybox which for those of you lucky enough to not be immediately triggered is a single binary minimal Linux user space intended for embedded applications. it’s got a bunch of poo poo built in like a dash (lol) implementation and among other things a vi which when I used it didn’t have features like “undo”. busybox's vi is trash - lots of basic things don't work (yanking, word skip, undo, etc), it's the single worst thing about the busybox userspace IMO
|
![]() |
|
Sapozhnik posted:pretty sure all of those things work on latest busybox? Finally busybox lets me yank it
|
![]() |
|
Emacs gives you a lisp
|
![]() |
|
fritz posted:wasted years playing nethack means i got hjkl down fucken same did you know they released a new version last year?
|
![]() |
|
you can play ascii on nethack.alt.org and that owns because you find other peoples' bones files
|
![]() |
|
Sapozhnik posted:there is no useful debugger for shell scripts and the language itself is awful and full of gotchas. Shell scripts work and are easy, sorry if you can't be bothered to learn how to string commands together bruv
|
![]() |
|
"Oh no I can't figure how to use if statements and for-loops in a shell script, better install docker and nodejs for my deployment task" Anybody who develops for Linux hardware knows shell scripts are easy and devastatingly common You get them in build systems, init scripts, makefiles, script APIs in editors, CI systems, etc They're literally everywhere because they're so simple and easy Poopernickel fucked around with this message at 19:56 on Oct 27, 2017 |
![]() |
|
Yes the syntax is weird and everything is string-based, but so what - it's not that hard
|
![]() |
|
Sapozhnik posted:much like chlamydia, shell scripts can be found in all sorts of surprising places! Embrace the clap, you'll never cure it
|
![]() |
|
for you non shellhavers, here's your chance to heckle the man responsible: https://blog.bluzelle.com/ask-me-anything-with-brian-fox-open-source-advisor-to-bluzelle-64749fc58b64
|
![]() |
|
Sapozhnik posted:i use gnome to do work and it is very needs suiting What did he stick u with? 8051s? Some kind of Z80 monstrosity? If you say AVR anything, you can totally Linux those fyi
|
![]() |
|
I feel your pain with that said I've never used the STM8 so take that for what its worth never mind, they don't do a linux except through wine actually as i investigate more, i'm not sure? maybe email them - they're legit giving the compiler away because nobody buys it any more Poopernickel fucked around with this message at 05:29 on Oct 30, 2017 |
![]() |
|
its me, I'm the
|
![]() |
|
Shell scripts would be fine, it only needs to work once And I'd either deploy it with a Makefile or maybe ansible
|
![]() |
|
Fucken lol That could happen just as easily in any language though, nothing shell specific about it
|
![]() |
|
embedded linux, ship shell scripts eery day eery goddam day
|
![]() |
|
Condiv posted:i thought embedded devs gave a poo poo about performance not too common to use bash where speed is concerned, for sure - probably you're gonna ship something with a compiled language (or a plang if you're nasty) but it's super common to use shell scripts in the init system, and anything related to it also it's pretty common to grant single-command sudo privileges to a user so that programs they own can run a shell script that does very specific things like "delete these 12 files and then reboot" Poopernickel fucked around with this message at 00:21 on Nov 2, 2017 |
![]() |
|
IMO well-written shell scripts start to fall apart around the 150 line mark, and bad ones around the 10-line mark
|
![]() |
|
Soricidus posted:one time I replaced hundreds of lines of ksh your problems: - ksh - hundreds of lines
|
![]() |
|
if you're janitoring Makefiles also, those are 95% shell script
|
![]() |
|
systemd is good, discuss
|
![]() |
|
moonshine is...... posted:i just had a linux guy tell me it's easier to manage bins that everyone on the system needs if you symlink them from a users home instead of putting them in /usr/local/bin. then when you need to remove the user you just go through the whole directory structure and sort them out and leave it on the system. because it's easier than putting it in /usr/local/bin lolled @ this best way I've found to solve that problem is GNU stow, which is halfway in-between a package manager and a symlink gordian knot it works pretty well overall though, and its what I use when I need to compile and install a thing on my linux
|
![]() |
|
its short for dank nugs, fedora
|
![]() |
|
akadajet posted:If you use linux you pretty much gave up on life
|
![]() |
|
ah butterFS, the filesystem of choice for pancake eaters
|
![]() |
|
anybody up in this sliz ever use runit (or busybox's sv/runsv)? I wanna know what works good and what doesn't
|
![]() |
|
Poopernickel posted:anybody up in this sliz ever use runit (or busybox's sv/runsv)? I wanna know what works good and what doesn't Cocoa Crispies posted:that’s one of those wrapper scripts that just makes sure a service is running right? no, it's a standalone service manager (and a tiny init system) based on daemontools - more like a replacement for systemd that does a lot less stuff Systemd is totally fine and maybe even good on the desktop, but it sucks poo poo balls for use on a cheap ARMv7 running a Yocto build. Plus my coworkers are crusty graybeards who think sysvinit is fine and just dump everything into a single rcS script attached to a single runlevel I'm thinking of pitching the 'service manager' concept for our next major product, and runit seemed like it might be greybeard-approvable. But I wanted to figure out what would be in store for me Poopernickel fucked around with this message at 16:08 on Jan 31, 2018 |
![]() |
|
I'd just like to interject for a moment. What you’re referring to as Linux, is in fact, GNU/GNU/Linux, or as I’ve recently taken to calling it, GNU plus GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU Plus GNU system made useful by the GNU Plus GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU Plus GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called “GNU Plus Linux”, and many of its users are not aware that it is basically the GNU Plus GNU system, developed by the GNU Plus GNU Project. There really is a GNU Plus Linux, and these people are using it, but it is just a part of the system they use. GNU Plus Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. GNU Plus Linux is normally used in combination with the GNU Plus GNU operating system: the whole system is basically GNU Plus GNU with GNU Plus Linux added, or GNU Plus GNU/GNU Plus Linux. All the so-called “GNU Plus Linux” distributions are really distributions of GNU Plus GNU/GNU Plus Linux.
|
![]() |
|
Edgy
|
![]() |
|
vim
|
![]() |
|
Sapozhnik posted:i'd love to know what sort of insanely stupid trivial task those monster c++ code bases perform Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>> Template<template<template<template>>>
|
![]() |
|
ratbert90 posted:wayland refuses to let any graphical app run as root. This is by design and there’s no way around it or to turn it off. how do things like gparted or synaptic run?
|
![]() |
|
systemd is a good init system/service manager bundled with a shitload of terrible things that don't belong in either
|
![]() |
|
hifi posted:why didnt the girl from goofy movie turn hordes of teens into insane furries like lola bunny did (i know the answer) reasonable answers: 1. max's girlfriend in goofy movie doesn't have a tail, furries are into that poo poo 2. goofy movie came out before the internet Was A Thing, and I'm pretty sure the internet invented furries 3. something something dolan
|
![]() |
|
Cocoa Crispies posted:4. nobody watched the goofy movie oh yeah that too
|
![]() |
|
bssoil posted:So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running? <inception horn>
|
![]() |
|
what happens though, for real?
|
![]() |
|
![]()
|
# ¿ Mar 21, 2025 08:54 |
|
Install gentoo
|
![]() |