[issue845] df() shell function
Andras Korn
bts at bts.grml.org
Thu Apr 29 00:02:44 CEST 2010
Andras Korn <korn-grml at elan.rulez.org> added the comment:
On Wed, Apr 28, 2010 at 09:49:56PM +0000, Ulrich Dangel wrote:
> On Wednesday 28 April 2010 23:07:39 Andras Korn wrote:
> > Well, fwiw, grml already has such wrappers (this is one of the things that
> > make it appealing). For example, ls is by default aliased to:
> >
> > ls='ls -b -CF --color=auto'
> >
> > I don't see how this is any different.
>
> It is different as it only changes the default parameters for a program.
> In your case you putting the output from df trough column and sed.
>
> And in addtion the sed command is only useful with the english locale and not
> any other like for example german http://nopaste.narf.at/show/24/
Yes, I agree that the locale dependency is a con.
> > But I'd be happy with DF() instead of df() if you really think modifying
> > ls(1) is OK but modifying df(1) isn't. :)
>
> Yes as the alias only adds additional parameters.
That, however, is irrelevant - it changes the behaviour of the utility, and
that's it. :)
But OK, the locale thing convinced me; it'd be possible to make it work with
any locale, but only with a disproportional amount of work.
So, any objections to supplying it as DF()?
--
Andras Korn <korn at elan.rulez.org> - <http://chardonnay.math.bme.hu/~korn/>
Bachelor: A guy who has cheated a woman out of a divorce.
----------
messages: 3151, 3154, 3155, 3156, 3157, 3159, 3160
nosy: korn
priority: wish
status: chatting
title: df() shell function
topic: zsh
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue845>
_____________________________________
More information about the Bugs-changes
mailing list