4 ms·
I wanted to use ed for something recently and was punched with: bash: ed: command not found Apparently, despite being mandated by POSIX, not every Linux dis
by Jorengarenar 4y ago
I wanted to use ed for something recently and was punched with:
bash: ed: command not found
Apparently, despite being mandated by POSIX, not every Linux distro (e.g. Arch) ship it by default
- ykonstant 4y agoIt is very frustrating. In my personal sh library, I probe for `ed` and, if not available, I alias to `ex -s`; I then write in-place editing scripts carefully to use only common functionality to both. Sigh.
- Jorengarenar 4y agoYeah... to my even bigger surprise, ex also was nowhere to be found!
- ykonstant 4y agoThat is very strange; ex should be part of Arch base... oh well, probe for `vi -s` and if this does not work either, get karma on reddit or whatever by making fun of Arch :D
- Jorengarenar 4y agoNow that I look at it, base package is missing [0] a bit of stuff: > The base package does not include all tools from the live installation, so installing other packages may be necessary for a fully functional base system. In particular, consider installing: > - userspace utilities for the management of file systems that will be used on the system, > - utilities for accessing RAID or LVM partitions, > - specific firmware for other devices not included in linux-firmware (e.g. sof-firmware for sound cards), > - software necessary for networking (e.g. a network manager or DHCP client), > - a text editor, > - packages for accessing documentation in man and info pages: man-db, man-pages and texinfo. [0]: https://wiki.archlinux.org/title/Installation_guide#Install_essential_packages https://wiki.archlinux.org/title/Installation_guide#Install_...
- chungy 4y agoMost Linux distros don't claim to be POSIX compliant. (In fact, software on GNU/Linux in general doesn't claim to be such. Sometimes it's taken as a guideline, more often ignored entirely.)
- hnlmorg 4y agoWhich makes GNUs argument for deprecating egrep all the more frustrating.
- mtlmtlmtlmtl 4y agoFound this surprising having used arch for years. Turns out ed is not in GNU coreutils, which is part of the base package. But there's a posix package which includes ed and other posix stuff.
- nonrandomstring 4y agoone box I tried recently had the absurd and possibly sacrilegious; alias vim='emacs -nw' alias vi='vim' alias ed='vi'
- Jorengarenar 4y agoMein Gott, some people just want to see the world burn
- Narishma 4y agoDebian doesn't seem to install it by default either.