WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: requesting ed  (Read 2998 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
requesting ed
« on: March 15, 2013, 10:51:09 AM »
as we ship with sed and even vi, why don't we have the standard text editor in base?
I use ed for editing files in place instead of streaming with hacky workarounds like
Code: [Select]
sed 's/a/b/' file > tempfile; mv tempfile file

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: requesting ed
« Reply #1 on: March 15, 2013, 11:03:56 AM »
Please do not break Core's core philosophy requesting addition ad-hoc applications to base.

You are welcome to submit ed.tcz if you are missing it.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting ed
« Reply #2 on: March 15, 2013, 11:12:29 AM »
I'm not breaking anything, just trying to retrace and reevaluate the thoughts that led to the current choice of base applications.

I'm quite happy with having busybox as an alternative to these bloated GNU core utilities, but that also means there's no way I'll be using coreutils for anything.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: requesting ed
« Reply #3 on: March 15, 2013, 11:19:43 AM »
You are welcome to submit ed.tcz built from BusyBox.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting ed
« Reply #4 on: March 15, 2013, 11:23:53 AM »
Honestly i haven't considered compiling statically just one program out of busybox like that. In my mind I only saw the huge busybox binary and didn't see a good way of making this a slick additional package.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: requesting ed
« Reply #5 on: March 15, 2013, 11:55:55 AM »
Why not dynamically linking additional busybox applets, when busybox in base is already dynamically linked?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: requesting ed
« Reply #6 on: March 15, 2013, 11:58:23 AM »
sed -i 's/a/b/' file

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting ed
« Reply #7 on: March 15, 2013, 12:12:32 PM »
Why not dynamically linking additional busybox applets, when busybox in base is already dynamically linked?

I thought static would be simple and failsafe, so I didn't think further, wasn't even aware busybox in tc is dynamically linked.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting ed
« Reply #8 on: March 15, 2013, 12:16:11 PM »
sed -i 's/a/b/' file

heh, I didn't even know our busybox version supports -i.
I have some other scripts lying around that use ed because sed -i doesn't exist on some systems without GNU software.
I'm considering changing my usage of ed to sed -i, but not sure yet, will have to check some of those other systems first.