Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

decent languages for unixy shell scripting

Name: Anonymous 2019-08-27 8:06

are there any? ash, dash, csh, ksh and bash all suck when you want to do more complex programming because simple shit like conditionals are based on weird hacks, and because they favor clever one-liners over clarity. perl makes complex programming easier but it also relies heavily on cleverness and doing cryptic shit with symbols. popular scripting languages like python are ok if your're are idea of shell script is 'text processing', not 'managing processes and pipes'. scsh is not maintained anymore. maybe someone should make a racket #lang for this shit.

Name: Anonymous 2019-08-27 9:52

rc from plan9. i haven‘t tested it and can‘t vouch for it but it looks good and has an active following.

Name: Anonymous 2019-08-27 12:50

Just use PowerShell.

Name: Anonymous 2019-08-27 15:11

TempleOS has the best shell

Name: Anonymous 2019-08-27 21:05

haskell
scheme
that one scheme shell thing

Name: Anonymous 2019-08-27 21:23

HolyC

Name: Anonymous 2019-08-28 6:12

>>3
that's actually worse than using bash

Name: Anonymous 2019-08-28 6:20

>>5
haskell
shell scripting is all about side effects, which means your're are going to be jumping through the monadic hoops all the time
scheme
no built-in support for OS stuff in stdlib
that one scheme shell thing
it was really cool, but it's tied to a specific ancient scheme implementation which doesn't work on 64-bits

Name: Anonymous 2019-08-28 6:25

>>4,6
the language itself is mediocre but the environment as a whole is unironically really cool - the terminal and text editor with image/3D model rendering and the hyperlinks system really stand out

Name: Anonymous 2019-08-28 9:59

bc(1), no joke.

Name: Anonymous 2019-08-28 10:32

>>10
how do you use it to launch other programs? I know it can easily check for dubs, but that's not enough

Name: Anonymous 2019-08-29 2:40

>>1
How about https://xon.sh -- it's Python-based, but oriented toward shell tasks.

Seems like a happy middle ground between Python and bash.

$PATH.append('/home/scopatz/sandbox/bin')
$LD_LIBRARY_PATH = ['/home/scopatz/.local/lib', '/home/scopatz/miniconda3/lib', '']

# alias to quit AwesomeWM from the terminal
def _quit_awesome(args, stdin=None):
lines = $(ps ux | grep "gnome-session --session=awesome").splitlines()
pids = [l.split()[1] for l in lines]
for pid in pids:
kill @(pid)

aliases['qa'] = _quit_awesome

Name: Anonymous 2019-08-29 6:06

>>12
that's pretty much exactly what I was looking for, thanks

Name: Anonymous 2019-08-29 6:32

>>12
https://xon.sh/tutorial_macros.html
this is cool, normal FIOC would benefit from this (metaclasses are ok but in most cases a simpler metaprogramming system would suffice)

Name: Anonymous 2019-08-29 9:28

Name: Anonymous 2019-08-29 20:58

>>15
Oh! Scheme. Very nice.

Name: Anonymous 2019-09-02 19:04

nodejs

Name: Anonymous 2019-09-06 15:16

>>17
Lel

Name: Anonymous 2019-09-06 22:06

>>8
monadic hoops
It's a single IO monad.

Name: Anonymous 2019-09-07 4:58

>>15
Written in Go, so it doesn't count

Name: Anonymous 2019-09-13 1:38

>>15
That's actually pretty good for Go code.

Name: Anonymous 2019-09-13 8:02

(let (dubs (post-get-number post))
(check dubs))

Name: Anonymous 2019-09-26 9:59

>>19
IIRC it's 'single IO command per spawned process', which is quite an overhead when compared to 'typing program name to launch it'. unless your're are using the underlying system shell, but that's kind of cheating.

Name: Proud Not-C 2019-09-27 3:40

I'm not proud to say this, but I have a shell scripter in my family tree. He's still hanging there.

Name: Shell Scripter 2019-09-27 4:15

Somebody cut me down!

Name: Anonymous 2019-09-27 5:52

>>24
*family-abused multi-branched slave plant of healthy size.

Name: Anonymous 2019-09-27 12:14

and because they favor clever one-liners over clarity

Those two are the same.

If you disagree, look at PowersHell...

Name: Anonymous 2019-10-02 21:52

>>1
dash because gotta run fast or perl because it's a real language and it's still easy to call external programs.

Name: Anonymous 2019-10-02 23:33

>>27
PowerShell is actually good and runs on Loonix now

Name: Anonymous 2019-10-04 13:55

>>29
PowersHell is a sad joke. The idea of using native objects would be good if we were talking strings, ints, floats, bools, nulls, lists and dicts, i.e. JSON or YAML-representable, zero learning curve, and universally easy to access and use. But we've got:

Classes
Windows shit complexity
Who gives a damn about COM and WMI bullshit? Whoever designed this shit should kill himself; it's an unapproachable PITA
Does nothing useful or new for UNIX
Alien syntax
Impractical verbosity
Camel-Case-With-Dash, are you fucking kidding me?
.NET runtime

All faggotry. I'd rather use Bash, Perl or even the FIOC.

Name: Anonymous 2019-10-04 19:36

>>30
not only that but PS is slow as fuck, and it takes literally like three minutes for it to load after you launch it.

Name: Anonymous 2019-10-04 22:13

>>31
WTF. Typical Microsoft craziness/.NET shit/Windows is configuring your hardware durr hurr hurr type shit. (I honestly wonder how can somebody come up with so much bullshit to do when something happens in the OS in order for things to take THAT long to happen. Like... how would I waste so much CPU and I/O when you plug a fucking USB storage in? That much shit to do must have taken man years to develop... I can't begin to imagine what for. And they claim the structured data PowersHell handles is more efficient than Lunix text streams that need to be parsed?)

And they just don't get terminal work, no matter what. They even had to embed Ubuntu in order to get something decent.

Name: Anonymous 2019-10-04 22:33

>>32
as if GNOME isn't also a bloated shitpig express
but at least we have the option of less shitty window managers I suppose

Name: Anonymous 2019-10-05 7:22

>>33
GNOME is shit, but not nearly as bad. That said, you can use a different window manager and desktop altogether. I've been using Lunix for nearly 2 decades, and never ever used GNOME. (KDE2, WindowMaker, KDE3, Xfce ever since the KDE4 shit happened)

Name: Anonymous 2019-10-05 18:12

GNU's Not Usable

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List