WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: requesting stat command  (Read 3353 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
requesting stat command
« on: March 15, 2013, 08:48:49 AM »
I think stat should be in tinycore base, does it not exist in busybox?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: requesting stat command
« Reply #1 on: March 15, 2013, 09:28:29 AM »
+1
(it does)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: requesting stat command
« Reply #2 on: March 15, 2013, 10:09:26 AM »
You can always find something not in base but usually in other distros so you think it is essential. You can always add them installing a proper extension. In case of stat

coreutils.tcz

Keep Core slim, do not bloat it.
Béla
Ham Radio callsign: HA5DI

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

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting stat command
« Reply #3 on: March 15, 2013, 10:42:40 AM »
is the busybox version of stat bloated?

I'm now using ls -lc for what I wanted to use stat for. I agree there might not be a need for stat after all. Perhaps someone else would tell a reason to consider having it at all. Tinypoodle?
« Last Edit: March 15, 2013, 10:55:50 AM by hiro »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: requesting stat command
« Reply #4 on: March 15, 2013, 11:05:31 AM »
A need for stat could come up at any moment, at least for me that seems to be so.

I use the static busybox binary (built with make defconfig) as provided upstream, which is less than half the size of the coreutils.tcz extensions and about 30% of it when squashed, to keep bloat in limits ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: requesting stat command
« Reply #5 on: March 15, 2013, 11:16:17 AM »
A need for stat could come up at any moment, at least for me that seems to be so.

I use the static busybox binary (built with make defconfig) as provided upstream, which is less than half the size of the coreutils.tcz extensions and about 30% of it when squashed, to keep bloat in limits ;)

I have never used stat in the last 10 years and I dio not miss it.

You can always find something you need and not is in the base, like 'ed'. My view is that Core itself has all necessary tools and you can always add missing one from the repo or build it yporself or submit as an extension. It is the beauty of Core.
Béla
Ham Radio callsign: HA5DI

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

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: requesting stat command
« Reply #6 on: March 15, 2013, 11:17:02 AM »
@tinypoodle well, tell me anything you're using stat for that ls -l[ctu] couldn't do?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: requesting stat command
« Reply #7 on: March 15, 2013, 11:41:46 AM »
There are many options when a file or filesystem requires examination, and also ls doesn't examine filesystems.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)