Re: rcctl: find(1) service files in /etc/rc.d

2014-10-15 Thread Vadim Zhukov
2014-10-15 13:11 GMT+04:00 Craig R. Skinner : > On 2014-10-14 Tue 00:24 AM |, Antoine Jacoutot wrote: >> >> Makes sense yes. Not sure I'd want a function just for that one liner though. >> I'll commit something tomorrow. >> > > Nice one, using shell internals. > > This restricts the listing to file

Re: rcctl: find(1) service files in /etc/rc.d

2014-10-15 Thread Antoine Jacoutot
On Wed, Oct 15, 2014 at 10:11:18AM +0100, Craig R. Skinner wrote: > On 2014-10-14 Tue 00:24 AM |, Antoine Jacoutot wrote: > > > > Makes sense yes. Not sure I'd want a function just for that one liner > > though. > > I'll commit something tomorrow. > > > > Nice one, using shell internals. > > T

Re: rcctl: find(1) service files in /etc/rc.d

2014-10-15 Thread Craig R. Skinner
On 2014-10-14 Tue 00:24 AM |, Antoine Jacoutot wrote: > > Makes sense yes. Not sure I'd want a function just for that one liner though. > I'll commit something tomorrow. > Nice one, using shell internals. This restricts the listing to files which are also executable: Index: rcctl.sh =

Re: rcctl: find(1) service files in /etc/rc.d

2014-10-13 Thread Antoine Jacoutot
On Mon, Oct 13, 2014 at 09:31:05PM +0100, Craig R. Skinner wrote: > Move 2 duplicate searches into a function. > > The diff also ignores (RCS) subdirectories. > > $ find /etc/rc.d ! -type f > /etc/rc.d > /etc/rc.d/RCS Makes sense yes. Not sure I'd want a function just for that one liner though.

rcctl: find(1) service files in /etc/rc.d

2014-10-13 Thread Craig R. Skinner
Move 2 duplicate searches into a function. The diff also ignores (RCS) subdirectories. $ find /etc/rc.d ! -type f /etc/rc.d /etc/rc.d/RCS Index: rcctl.sh === RCS file: /cvs/src/usr.sbin/rcctl/rcctl.sh,v retrieving revision 1.43 dif