Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-05 Thread Rob Landley
On 01/04/2015 06:31 PM, Rich Felker wrote: On Sun, Jan 04, 2015 at 06:20:05PM -0600, Rob Landley wrote: Except that on Linux, non-bash scripts were almost nonexistent before 2006 (ported from other OSes and you know where to find ksh or zsh if it says #!/bin/zsh), and even since then it's

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-04 Thread Rob Landley
On 01/04/2015 05:43 AM, Rich Felker wrote: On Sun, Jan 04, 2015 at 01:39:21AM -0600, Rob Landley wrote: On 01/03/2015 10:07 PM, Rich Felker wrote: On Thu, Jan 01, 2015 at 10:41:22PM -0600, Rob Landley wrote: On 01/01/2015 01:04 PM, dmccunney wrote: On Thu, Jan 1, 2015 at 1:39 AM, David

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-04 Thread Rich Felker
On Sun, Jan 04, 2015 at 12:39:25PM -0600, Rob Landley wrote: (Redirecting /bin/sh to point to dash instead of bash was still a dumber move, though.) I fail to see how this was dumb. It made shellshock a non-issue When they switched to dash I _segfaulted_ the thing multiple times. It

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-04 Thread Rob Landley
On 01/04/2015 01:04 PM, Rich Felker wrote: On Sun, Jan 04, 2015 at 12:39:25PM -0600, Rob Landley wrote: Coming up with a bash replacement, yay. But dash didn't even bother to implement source as an alias for ., or implement the function keyword (it's basically a comment). Those were trivial

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-04 Thread Rich Felker
On Sun, Jan 04, 2015 at 06:20:05PM -0600, Rob Landley wrote: On 01/04/2015 01:04 PM, Rich Felker wrote: On Sun, Jan 04, 2015 at 12:39:25PM -0600, Rob Landley wrote: Coming up with a bash replacement, yay. But dash didn't even bother to implement source as an alias for ., or implement

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-04 Thread Roy Tam
2015-01-05 8:31 GMT+08:00 Rich Felker dal...@libc.org: On Sun, Jan 04, 2015 at 06:20:05PM -0600, Rob Landley wrote: On 01/04/2015 01:04 PM, Rich Felker wrote: On Sun, Jan 04, 2015 at 12:39:25PM -0600, Rob Landley wrote: Coming up with a bash replacement, yay. But dash didn't even bother to

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-03 Thread Rich Felker
On Thu, Jan 01, 2015 at 10:41:22PM -0600, Rob Landley wrote: On 01/01/2015 01:04 PM, dmccunney wrote: On Thu, Jan 1, 2015 at 1:39 AM, David Seikel onef...@gmail.com wrote: I have a simple test to decide if I like an editor as a result of these decades of random editor usage. If I can't

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-03 Thread Rich Felker
On Sun, Jan 04, 2015 at 02:24:19PM +1000, David Seikel wrote: On Sat, 3 Jan 2015 23:07:55 -0500 Rich Felker dal...@libc.org wrote: If vi/uemacs/joe/nano are trivial extensions of the same basic infrastructure (sort of true modulo vi command mode), I have no problem implementing lots of

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-03 Thread David Seikel
On Sat, 3 Jan 2015 23:31:38 -0500 Rich Felker dal...@libc.org wrote: On Sun, Jan 04, 2015 at 02:24:19PM +1000, David Seikel wrote: On Sat, 3 Jan 2015 23:07:55 -0500 Rich Felker dal...@libc.org wrote: If vi/uemacs/joe/nano are trivial extensions of the same basic infrastructure

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-03 Thread Rob Landley
On 01/03/2015 10:49 PM, David Seikel wrote: On Sat, 3 Jan 2015 23:31:38 -0500 Rich Felker dal...@libc.org wrote: On Sun, Jan 04, 2015 at 02:24:19PM +1000, David Seikel wrote: On Sat, 3 Jan 2015 23:07:55 -0500 Rich Felker dal...@libc.org wrote: If vi/uemacs/joe/nano are trivial extensions

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-03 Thread Rob Landley
On 01/03/2015 10:07 PM, Rich Felker wrote: On Thu, Jan 01, 2015 at 10:41:22PM -0600, Rob Landley wrote: On 01/01/2015 01:04 PM, dmccunney wrote: On Thu, Jan 1, 2015 at 1:39 AM, David Seikel onef...@gmail.com wrote: I have a simple test to decide if I like an editor as a result of these

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-01 Thread dmccunney
On Thu, Jan 1, 2015 at 1:39 AM, David Seikel onef...@gmail.com wrote: I have a simple test to decide if I like an editor as a result of these decades of random editor usage. If I can't sit down with the editor and figure out how to do basic editing and saving in less than a minute (sans

Re: [Toybox] [PATCH] optional fatter cat(1)

2015-01-01 Thread David Seikel
On Thu, 1 Jan 2015 14:04:41 -0500 dmccunney dennis.mccun...@gmail.com wrote: On Thu, Jan 1, 2015 at 1:39 AM, David Seikel onef...@gmail.com wrote: I have a simple test to decide if I like an editor as a result of these decades of random editor usage. If I can't sit down with the editor

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-31 Thread Rob Landley
On 12/29/14 23:58, Rich Felker wrote: On Tue, Dec 30, 2014 at 10:18:19AM +1000, David Seikel wrote: On Mon, 29 Dec 2014 16:10:07 -0500 dmccunney dennis.mccun...@gmail.com wrote: On Mon, Dec 29, 2014 at 1:00 PM, Rich Felker dal...@libc.org wrote: On Mon, Dec 22, 2014 at 10:21:26PM -0600,

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread Marc André Tanner
On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: On 12/21/14 17:42, enh wrote: On Sun, Dec 21, 2014 at 1:07 PM, James McMechan james_mcmec...@hotmail.com wrote: fortunately n-curses devolves tremendously when you don't try to support every terminal type under the sun

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread Roy Tam
2014-12-29 20:45 GMT+08:00 Marc André Tanner m...@brain-dump.org: On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: On 12/21/14 17:42, enh wrote: On Sun, Dec 21, 2014 at 1:07 PM, James McMechan james_mcmec...@hotmail.com wrote: fortunately n-curses devolves tremendously when

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread dmccunney
On Mon, Dec 29, 2014 at 7:45 AM, Marc André Tanner m...@brain-dump.org wrote: I plan to implement vi over the next year I agree that there is a need for a clean vi(m) like editor. Based on my experience I got from writing my own work in progress clone[0], the problem is that while the basic

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread dmccunney
On Mon, Dec 29, 2014 at 1:00 PM, Rich Felker dal...@libc.org wrote: On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: I plan to implement vi over the next year, but it's one of the four realy big commands required by posix (sed, awk, sh, vi) and I've been debugging sed against

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread David Seikel
On Mon, 29 Dec 2014 16:10:07 -0500 dmccunney dennis.mccun...@gmail.com wrote: On Mon, Dec 29, 2014 at 1:00 PM, Rich Felker dal...@libc.org wrote: On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: I plan to implement vi over the next year, but it's one of the four realy big

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-29 Thread Roy Tam
2014-12-30 8:18 GMT+08:00 David Seikel onef...@gmail.com: On Mon, 29 Dec 2014 16:10:07 -0500 dmccunney dennis.mccun...@gmail.com wrote: On Mon, Dec 29, 2014 at 1:00 PM, Rich Felker dal...@libc.org wrote: On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: I plan to implement vi

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-23 Thread enh
On Tue, Dec 23, 2014 at 11:44 AM, Rich Felker dal...@libc.org wrote: On Tue, Dec 23, 2014 at 10:23:43AM -0600, Rob Landley wrote: On 12/22/2014 11:37 PM, Rich Felker wrote: On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: If less is a priority, that actually helps prioritize

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-23 Thread Rich Felker
On Tue, Dec 23, 2014 at 11:48:42AM -0800, enh wrote: Lots of us _do_ have to deal with serial terminals. Yes, I know. If you export $ROWS and $COLUMNS it'll do that instead of probe, and I can add a compile-time config symbol to switch it off if you care that much. Exporting

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-23 Thread enh
On Tue, Dec 23, 2014 at 11:53 AM, Rich Felker dal...@libc.org wrote: On Tue, Dec 23, 2014 at 11:48:42AM -0800, enh wrote: Lots of us _do_ have to deal with serial terminals. Yes, I know. If you export $ROWS and $COLUMNS it'll do that instead of probe, and I can add a compile-time

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-22 Thread Rich Felker
On Mon, Dec 22, 2014 at 10:21:26PM -0600, Rob Landley wrote: If less is a priority, that actually helps prioritize the rest of them. Once I've written the basic navigate a line infrastructure (with querying screen size via ansi probe fallback, and reassembling escape sequences that got

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-22 Thread David Seikel
On Mon, 22 Dec 2014 22:21:26 -0600 Rob Landley r...@landley.net wrote: On 12/21/14 17:42, enh wrote: On Sun, Dec 21, 2014 at 1:07 PM, James McMechan james_mcmec...@hotmail.com wrote: On 12/20/2014 05:55:45 PM, David Seikel wrote: On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-21 Thread James McMechan
On 12/20/2014 05:55:45 PM, David Seikel wrote: On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley r...@landley.net wrote: On 12/19/14 18:52, David Seikel wrote: On Fri, 19 Dec 2014 16:43:51 -0800 enh e...@google.com wrote: i was thinking about writing a trivial termcap implementation

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-21 Thread enh
On Sun, Dec 21, 2014 at 1:07 PM, James McMechan james_mcmec...@hotmail.com wrote: On 12/20/2014 05:55:45 PM, David Seikel wrote: On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley r...@landley.net wrote: On 12/19/14 18:52, David Seikel wrote: On Fri, 19 Dec 2014 16:43:51 -0800 enh

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-21 Thread Rich Felker
On Sun, Dec 21, 2014 at 01:07:02PM -0800, James McMechan wrote: I am would suggest something like GNU_QUIRKS and POSIX_QUIRKS config symbols to add in the odd features like gnu sed directly disagreeing with POSIX or POSIX's umm interesting xargs without -0 quoting conventions and any other why

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-21 Thread David Seikel
On Sun, 21 Dec 2014 15:42:01 -0800 enh e...@google.com wrote: On Sun, Dec 21, 2014 at 1:07 PM, James McMechan james_mcmec...@hotmail.com wrote: On 12/20/2014 05:55:45 PM, David Seikel wrote: On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley r...@landley.net wrote: On 12/19/14

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-20 Thread Rob Landley
On 12/19/14 18:52, David Seikel wrote: On Fri, 19 Dec 2014 16:43:51 -0800 enh e...@google.com wrote: i was thinking about writing a trivial termcap implementation that just returns the xterm-color answers and using the BSD less, but i didn't realize that even the BSDs use the GNU less. i

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-20 Thread David Seikel
On Sat, 20 Dec 2014 19:30:01 -0600 Rob Landley r...@landley.net wrote: On 12/19/14 18:52, David Seikel wrote: On Fri, 19 Dec 2014 16:43:51 -0800 enh e...@google.com wrote: i was thinking about writing a trivial termcap implementation that just returns the xterm-color answers and

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread enh
On Fri, Dec 19, 2014 at 11:22 AM, Rob Landley r...@landley.net wrote: On 12/18/2014 09:38 PM, enh wrote: This basically brings the catv code into cat (but optionally enabled, like the 'big' variant of sort) and adds the missing-from-both -n option. There are a couple of options in coreutils

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread Rob Landley
On 12/19/2014 01:54 PM, enh wrote: i know there's catv and nl already in toybox, but part of my goal with moving us to toybox is that people's muscle memory should just work. A good argument. :) Rob ___ Toybox mailing list Toybox@lists.landley.net

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread Rich Felker
On Fri, Dec 19, 2014 at 02:05:10PM -0600, Rob Landley wrote: On 12/19/2014 01:54 PM, enh wrote: i know there's catv and nl already in toybox, but part of my goal with moving us to toybox is that people's muscle memory should just work. A good argument. :) Could the cat toy just detect the

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread enh
I want to remove catv though. On Dec 19, 2014 13:05, Rich Felker dal...@libc.org wrote: On Fri, Dec 19, 2014 at 02:05:10PM -0600, Rob Landley wrote: On 12/19/2014 01:54 PM, enh wrote: i know there's catv and nl already in toybox, but part of my goal with moving us to toybox is that

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread Rich Felker
On Fri, Dec 19, 2014 at 01:48:11PM -0800, enh wrote: I want to remove catv though. Is there a reason you need to, though? This seems like purely an aesthetic consideration to be balanced with the aesthetic consideration of not having catv code in the main cat. Rich

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread enh
like i said earlier, my aim is be roughly like coreutils. catv is some weird made-up thing. and i _will_ get push back about adding too many commands, so i intend to make them all count. On Fri, Dec 19, 2014 at 1:50 PM, Rich Felker dal...@libc.org wrote: On Fri, Dec 19, 2014 at 01:48:11PM -0800,

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread Marc André Tanner
On Fri, Dec 19, 2014 at 02:41:30PM -0800, enh wrote: like i said earlier, my aim is be roughly like coreutils. catv is some weird made-up thing. and i _will_ get push back about adding too many commands, so i intend to make them all count. The irony of course is that Rob Pike, Russ Cox and a

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread David Seikel
On Fri, 19 Dec 2014 11:54:55 -0800 enh e...@google.com wrote: (sadly the most common request seems to be ooh, does this mean we can have less now?.) Actually I made a start on less, and more, and a bunch of editors, and got them working at a basic level. Robs just been too busy to get my

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread enh
i was thinking about writing a trivial termcap implementation that just returns the xterm-color answers and using the BSD less, but i didn't realize that even the BSDs use the GNU less. i switched Android over to the toybox more from the mksh shell function, but people still complain they really

Re: [Toybox] [PATCH] optional fatter cat(1)

2014-12-19 Thread David Seikel
On Fri, 19 Dec 2014 16:43:51 -0800 enh e...@google.com wrote: i was thinking about writing a trivial termcap implementation that just returns the xterm-color answers and using the BSD less, but i didn't realize that even the BSDs use the GNU less. i switched Android over to the toybox more

[Toybox] [PATCH] optional fatter cat(1)

2014-12-18 Thread enh
This basically brings the catv code into cat (but optionally enabled, like the 'big' variant of sort) and adds the missing-from-both -n option. There are a couple of options in coreutils cat still missing, and a few more still in BSD's cat, but they're pretty useless. (I've commented the missing