[Cialug] The systemd Init System
Todd Walton
tdwalton at gmail.com
Fri Feb 12 13:08:04 CST 2016
On Wed, Dec 16, 2015 at 11:48 AM, Todd Walton <tdwalton at gmail.com> wrote:
>
> Huh. I was about to respond to Scott in this way, but you beat me to it,
> Jim. Although I'd probably say it died soft, not hard. The remnants are
> still there.
>
> The root problem, imho, is that the "one thing" unit needs to be
> refactored, updated for the modern age. And text output is great at the end
> of the pipe, but it's not always great for the core utils talking to each
> other, so you get things like find with the mutant arms of -exec and
> -print0.
>
> And oh how I wish someone would rewrite ls to sort better, align better,
> etc.
>
And on that note... Enumerating files or doing stuff with files:
http://mywiki.wooledge.org/ParsingLs
===============
# Good!
for f in *; do
[[ -e $f ]] || continue
...
done
===============
===============
# BAD! Don't do this!
for f in $(ls); do
...
done
===============
*cough* objects *cough*
--
Todd
More information about the Cialug
mailing list