[ / / / / / / / / / / / / / ] [ dir / abc / arepa / asatru / christ / cpu / g / hispint / hydrus ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.952997>>953734 >>961544 [Watch Thread][Show All Posts]

Can we discuss shells?

I never realized there were so many shells out there all of which are better than bash

Which shells have you tried?

Which one are you using right now and why?

 No.953001>>953006 >>953045 >>953054 >>953238 >>953295

File (hide): ea5378e7db88c84⋯.webm (233.86 KB, 958x526, 479:263, eshell.webm) (h) (u) [play once] [loop]

Shells are an archaic construct that involve relying on your terminal emulator to copy-paste effectively, and laughably trivial things like font-locking and the most primitive tab completion facilitated by an immature, half-baked package ecosystem full of abandoned projects is lauded by everyone is the creme de la creme because of their incorrigible baby duck syndrome.

>>>/emacs/


 No.953005>>953011 >>953048

I use bash. Don't know why should I use anything else. Not a programmer.


 No.953006

>>953001

oh the irony


 No.953011>>953022 >>953053 >>953064 >>953083

>>953005

>Not a programmer.

so your a larper?


 No.953021>>953024 >>953030

What does FISH actually have over other shells?


 No.953022>>953023

>>953011

Found the real larper


 No.953023

>>953022

>no u

kys


 No.953024>>953051 >>953783

>>953021

It has very good context based auto complete. It is based of previous commands in you history that you've executed in that directory. For example I typically use a mvn install; and scp a b to copy a build to the test server. Depending on what project I'm in it will complete it to the correct command.


 No.953030

>>953021

Made for the 90s.


 No.953045>>953150 >>953154

>>953001

Computers are an archaic construct that involves relying on a piece of silicon for basic human needs, such as socializing (instead of grunting to your paleogf), getting food (instead of hunting wild ibex), learning information from unknown people (instead of your tribe master), storing/making images (instead of painting it on cave walls), listening to music (instead of the tribe shaman playing the bone flute and chanting godly phrases).

>>>/luddite/


 No.953048>>953064

>>953005

If you're a racist, you probably won't like bash.


 No.953051

>>953024

That and it sources man pages for options too.


 No.953053>>953064

>>953011

No. I I'm just


 No.953054>>953154

>>953001

> incorrigible baby duck syndrome

Quite often though, emacs just works. Look how superior the built in TRAMP mode is to anything any other editor has. Even the trendy 'sublime' only adds SFTP access as a paid plugin lol.


 No.953060>>953062

I've never found shell rice tasty.

Bash is sufficient. Any scripts I've written since the Roman empire fell run well on current hardware without portability issues.


 No.953062

>>953060

Yes I've had experience with others ksh, csh, etc. but bash preferred.


 No.953064>>961327

>>953011

>>953053

me. Why the fuck should I larp? Do I read like someone who comes from /pol/, the most cucked board on earth?

>>953048

Why? I'm not racist. I just don't see a reason to use anything other than bash/dash. It doesn't need systemd and as long as it doesn't want to take over my computer, I don't really care. When I'll need to maintain my sovereignty from systemd/shit software. I'll switch.


 No.953083>>953094 >>954704

>>953011

Just imagine: using a computer for something other than writing software.


 No.953094>>953097 >>953104 >>963198

>>953083

>facebook machine


 No.953097>>953101

>>953094

>implying anyone who isn't programmer uses (personal) computer for facebook

>implying that you code

<what is music

<what is film

<what is freedom to reach anyone who respects freedom, now that letters are compromised since muh nacionalism

Just fuck off, larpfag.


 No.953101>>953102

>>953097

>implying letters weren't compromised from the beginning of remote messaging.

Why do you think they had to invent the seals?


 No.953102>>953103

>>953101

>seals

Sealead letters can be resealed.


 No.953103>>953108

>>953102

I know but it was one of the first methods of autetification.


 No.953104

>>953094

>implying all of /tech/ is programming

I don't need to write a line of code to build and configure a server rack.


 No.953108>>953116

>>953103

>it was one of the first methods of autetification

Changes nothing on the fact that the pgp is more secure.


 No.953116>>953129

>>953108

You implied that letters being compromised is a recent phenomenon, which it isn't.


 No.953129>>953134

>>953116

Nacionalism is thing that predates since the 1500s.


 No.953132

bash just werks and is good enough for usage in scripts.

fish tries too hard to appeal to normalfags and I found it too annoying to use.

zsh is my favorite for personal use. I set it up to show the last command that matches what you have so far (so if you regularly ssh to some machine, typing ssh shows the last ssh command you used). I also made it so that certain things change color, commands are green, improper commands are red, etc.


 No.953134>>961327

>>953129

What language is this?


 No.953146>>954914 >>954945

>no one cares about tcsh anymore

bash vs tcsh used to be a holy war on par with emacs vs vi.


 No.953150>>953164

>>953045

Congratulations, you've made yourself feel smug while reaffirming why shells are useless.


 No.953154>>953164 >>953165 >>953226

>>953054

I'm not sure if you're contradicting me or supporting me, but I'm literally using using Eshell in the related video. I notice that on 8ch specifically, people will often times misinterpret my post and attack my from being wrong by refuting me with my own opinion. I don't know if it's my prose, because it's this site specifically, but I'll elaborate.

My point was that Emacs surmounts all of the shitty idiosyncrasies of a shell because it interacts directly with the kernel, meaning it has the exact same functionality of a shell without being tied down to a retarded interaction paradigm.

For example, in the video, someone is moving the point upwards in the buffer while killing and yanking text, something that typical users can't even pull off with a decent terminal emulator without a shitty plugin; in Emacs, this is just obvious, inherent functionality, not even a quality of life feature.

Furthermore, Eshell being an Emacs mode itself means that it can tap into a much more mature ecosystem. When I mentioned tab completion, I was referring to the fact that so many people laud Zsh's laughably simplistic completion when Eshell can tap into multiple completion paradigms, the paradigms themselves being something that can be altered and augmented. For example, in the picture, Helm is being used for completion; comparing that to Zsh is like comparing a sculpture to a 2d cutout, and I'm pretty sure Zsh users have never even heard of fuzzy completion.

Of course, I do most everything in dired. And the amazing thing about that is dired and Eshell use the same primitive functions: they're fundamentally the same but radically different means of interaction.

>>953045

That's a really obscure form of mockery, but I assume you're implying that shells are fundamentally necessary to interacting with your operating system. That's blatantly untrue, as evidenced by literally the video included with the post you were replying to. In fact, you just revealed the absurdity of your own point by deconstructing it like that. It really does make you seem like a luddite.


 No.953164

>>953150

>>953154

I think he was just mocking the Emacs' fag post, and using the same wording he did.


 No.953165

>>953154

also, nothing wrong with being a luddite


 No.953185

bash is perfectly fine. eshell is better though


 No.953226>>954429

>>953154

Sorry, I had misread your post. I thought you were describing emacs as the ecosystem of abandoned projects.


 No.953238>>953269 >>961972

>>953001

I could have bashed out "Downloads" in the time it took him to arrow up, yank using some no-doubt absurd key combo using two or three modifiers, arrow down, and paste

Low number of keypresses isn't the thing you should be focusing on. Speed and efficiency is.

the autocomplete and image editor open was pretty neat though


 No.953269>>953299

>>953238

>Low number of keypresses isn't the thing you should be focusing on. Speed and efficiency is.

Click Downloads, click image.


 No.953295>>953298

>>953001

What is your opinion on spacemacs?


 No.953298>>953303

>>953295

A fine introduction to Emacs if you're coming from Vim.

At some point you should drop it and create your own config though.


 No.953299>>953438

>>953269

Keyboard is still faster - doubly so since my hands are already likely on it.


 No.953303

>>953298

Ahh that seems to be the consensus. It's enjoyable for a few weeks, and then users want to ditch it.


 No.953315

Without tweaks, Zsh essentially functions like Bash with better tab completion.


 No.953438

>>953299

Armlet opinions don't count.


 No.953734>>953773 >>961327

>>952997 (OP)

I used to use Bash, and was looking into the different shells recently. I don't feel learning a non standard shell is very worthwhile for my needs, but also don't like the over dependance on bashisms out there, so I settled on dash.


 No.953773

>>953734


#!/bin/sh

Back to enjoying my at least half functional fish shell.


 No.953783

>>953024

How does that compare to zsh?


 No.954429

>>953226

No, that's pretty true. It's better than Zsh, though, for the simple fact that Emacs packages aren't often written solely for a single mode and thus have a larger audience.


 No.954441>>954455

>hurrdurr bash is jus fine!

>tab completion is total ass

>history search is total ass

>customization is total ass


 No.954455>>954456 >>954489 >>954516 >>955050 >>961327

>>954441

The true cancer is an OS designed with multiple programs. What we need is a monolithic entity, inherently cohesive, which exposes a contextually aware interface to the user. It is utter insanity that we need to develop "intelligent" shells to guess sane things to complete, and that we need glue tools Sed/Awk just to stitch various programs together that communicate in different formats. Instead of programs to run other programs, the os must provide it's own I/O interface.

The user doesn't need to see the contents of /bin, /sbin, /usr/bin or any other system tool. These should all be provided by the I/O interface to the system.

What looks nicer anyways, a Cathedral, with fine attention to detail, literally a building dedicated to God, or a Bazaar, a rag tag group of crowded Arab shop keepers in makeshift market stands?


 No.954456>>954458

>>954455

What are you opinions on Powershell and/or the Plan9 shell?


 No.954458>>954471

>>954456

I haven't used either, but I would suspect both end up being closer to my idea of an OS. From what I recall, Plan9 is still comprised of small programs isn't it?


 No.954471>>954472

File (hide): 2867f53dc66b7c6⋯.png (85.13 KB, 1117x643, 1117:643, hsg-12-19-14-01.png) (h) (u)

>>954458

>Plan9 is still comprised of small programs isn't it?

I believe so. But I think the way in which you invoke commands is very flexible throught the system. For instance in ACME you can just add your own commands to the program, via text labels. Almost like allowing users to add and replace function pointers inline with third party programs as functions. I guess pipeline-like in implementation, but not in concept. It's interesting if I'm understanding it right.

For what you're talking about, maybe MS's https://en.wikipedia.org/wiki/Singularity_(operating_system) would be interesting to look at.

If I'm understanding it correctly, they were like "what if C# / Powershell was an OS." Or You could probably think of it in other terms like "what if the J(ava)VM was just the JM and you used a nicer syntax (scala or whatever is hip today) on top of it".

This style also seems to blend practical interactive user experiences without compromising flexibility at a technical level also.

In theory everything would be managed and assertions could be made in practically the entire OS, where everything could just interact with anything in the native syntax, no need to bounce around to different bindings and indirection layers and shit.

It could be safe, fast, and ubiquitous. In theory at least. This would allow you to utilize complex-modular behavior, without having to design/implement it yourself.

I'm not sure if explaining all these concepts conveys what I'm thinking. I'm not familiar with any terms used in that space. Not many people seem to talk about OS design, at least, not new concepts. The most people would do if they saw an OS built in a managed language would say

>garbage collector

and that'd be that.


 No.954472

File (hide): 6473cb78c98fec4⋯.png (15.12 KB, 640x480, 4:3, ClipboardImage.png) (h) (u)

>>954471

>In theory everything would be managed and assertions could be made in practically the entire OS, where everything could just interact with anything in the native syntax, no need to bounce around to different bindings and indirection layers and shit.

Come to think of it, TempleOS is like this too, but with HolyC as the language.

So, not much in terms of advanced features with concise syntax, but the integration is there nonetheless.


 No.954489>>954509

>>954455

>The true cancer is an OS designed with multiple programs

Isn't that the core linux philosophy? Systemd tried breaking away from that and look how mad the nerds get.


 No.954492>>954494

Is s (the suckless shell) any good or just a meme?


 No.954494

>>954492

>is suckless a meme?

Anon, I...


 No.954509

>>954489

It definitely is, and it makes it much more convenient for a community project. Once we have a good idea of what sort of systems we want though, then I think you have an opportunity to swoop in and do some systemd level restructuring. Layered systems are always nice to think about conceptually, but they always create opportunities for inefficiencies.

If such a system truly was one monolithic program instead of just providing the appearance of one, it'd be necessary to build it with dynamically linked libraries, and a kernel intelligent enough to use some sort of cache system to manage linked in libraries. Otherwise you'd fill up RAM quite fast. The above scheme is essentially what is happening with multiple binaries anyways, with frequent ones ending up being stored in cache.


 No.954516>>954532

>>954455

>The true cancer is an OS designed with multiple programs. What we need is a monolithic entity, inherently cohesive, which exposes a contextually aware interface to the user.

And then you're strictly limited to what the interface is aware of. The *NIX philosophy works because of *composability* and *ubiquity*, not because of some massive Kernel/Userland/Shell/AllTheThings wannabe.

If you're lamenting that the tools suck, that's fair, but the answer is to improve them, not throw away decades of work on something that stands little chance of succeeding and will make everything worse.


 No.954532>>954536

>>954516

>*nix

>composable

LOL


 No.954536>>954553 >>954559 >>954854

>>954532

Pipes, you dumb fuck.


 No.954553>>954613

>>954536

Pipes are nice in concept, but not all the programs speak the same protocol, so you end up needing cut, tr, awk etc to glue the bits together.


 No.954559>>954613

>>954536

>muh text processing

Yeah because counting words in a file is a real good use of my 4ghz 16gb system. lol I'm going to stop now because even thinking about this shit is depressing as fuck.


 No.954570>>961768

>a lot of which aren't a good as Bash

ftfy OP


 No.954613>>954629 >>954635 >>961327

>>954553

"Gluing those bits together" is the whole point.

What would you rather have, "list_directory_and_filter_by_size_greater_than_one_meg.bin" (and it's million attendant variations) or a handful of commands that can be given their own options to do the same thing, and those options trivially modified?

Besides, if you find yourself using the same set of pipes over and over again, you shove it into a script. Problem solved.

>>954559

not an argument


 No.954629>>954635

>>954613

Without getting hung up on the syntax (it doesn't have to be lispy), I would like something like...

(filter dir (#.size > 1M))


 No.954635>>954667 >>961768

>>954613

>not an argument

Not that anon but I think the argument is that it's inefficient both in CPU time AND developer time.

>>954629

What are your opinions on Powershell?


 No.954640

If you are looking for a shell that uses the least resources and is the most efficient for proccessing and minimalism, then use DASH. It uses 72KB of ram compared to bash's 480KB on my system in memory. Now multiply that out for every shell script you run and see the memory saved/lost.


 No.954667

>>954635

I have not had a chance to use it, but I'll look into it.


 No.954704

>>953083

What are you fucking retarded ?


 No.954854>>954885

>>954536

>pipe

>on linux they are unidirectional

>still called pipes

makes ya think


 No.954885>>954891 >>961327

File (hide): aab62ce87039893⋯.jpg (142.49 KB, 688x833, 688:833, foglio.jpg) (h) (u)

>>954854

Pipes are the work of daemons. Cease immediately!


 No.954891

>>954885

Yeah I give up. A one way pipe. It's like the mario of operating systems.


 No.954914>>954945

>>953146

I use tcsh.


 No.954945

>>953146

>>954914

This, mainly because of how the history search works by default. I first used it in FreeBSD and have used it ever since, even on other platforms. It's nice, but I wonder of other shells. If something better has come out since. A lot of my friends use fish.


 No.955050

>>954455

Wow Poettering check the CoC jeez


 No.961327

>>953064

>Do I read like someone who comes from /pol/, the most cucked board on earth?

>>>/trannypol/

Worse than a larper

>>953134

Smooth-brained lefties

>>953734

We need a better standard, like if Zsh becomes a standard

>>954455

>Bazaar is worse

Spotted another commie who hates the free market

>>954613

A programming language feature that out-do pipes

>>954885

More like crack-pipes am I rite?


 No.961544

>>952997 (OP)

I used to use AST korn shell but it's a bit too bloated so I switched to openbsd's pdksh fork. It lacks some features such as here-strings, named arrays and some parameter substitutions in variables but it performs amazingly.


 No.961768>>961991

I use zsh. Is mksh any good?

>>954570

>preferring the unmaintainable shell that promotes non-standard features

>>954635

I am not the emacsfag but PowerShill is slow and disgusting. update-help doesn't work, etc.


 No.961972

>>953238

D tab w tab would have done it.


 No.961982

File (hide): 7c1c9b1b957bad4⋯.png (9.31 KB, 452x124, 113:31, ClipboardImage.png) (h) (u)

fish.


 No.961986>>961989

Is there a way to turn on reverse-i-search in bash by default when you open terminal? Fucking scrolled through bash manual and didn't find any info on that.


 No.961989

>>961986

Not that I know of, but fish is more or less like that all the time, in case you haven't tried it.


 No.961991

>>961768

It's a mess of a project and hardly better than its origin, pdksh (and especially its OpenBSD fork), but any shell would be an upgrade from (((zsh)))


 No.963198>>963227

>>953094

No dipshit. Getting real work done and leaving the software plumbing to the blue collar faggots trying to tell me they are a software "engineer". No. You are a plumber. You, at best, build infrastructure so that men can get some real work done.


 No.963227

>>963198

That's mean.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
86 replies | 7 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / abc / arepa / asatru / christ / cpu / g / hispint / hydrus ][ watchlist ]