[Toybox] ls implementation
Andre Renaud
andre at bluewatersys.com
Sun Feb 12 12:22:40 PST 2012
Hi Rob,
On 11/02/12 00:42, Rob Landley wrote:
> On 02/09/2012 05:18 PM, Andre Renaud wrote:
>> Hi,
>> Out of curiosity I had a go at implementing the 'ls' command in toybox,
>> just to see how involved it would be. I'm not entirely sure how patch
>> submission is done for toybox, and I'm not too familiar with mercurial,
>> but attached is the toys/ls.c file if you're interested.
>>
>> It is quite limited - it only supports directories as parameters (ie:
>> you can't do ls *.c), and only supports a couple of the ls options.
>>
>> Any comments?
>
> It looks good at first glance. I don't have time for a proper review
> this morning but hopefully after work I can merge it.
I've added a couple of bits to it, so that it supports ls -lFa1. The
main thing missing is support for files in the command line (currently
it only supports directories).
I hope non-inline attachments are ok for patches.
Regards,
Andre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ls.diff
Type: text/x-patch
Size: 5307 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120213/136ff64d/attachment-0007.bin>
More information about the Toybox
mailing list