[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should "df --portability" allow thousands separators?
From: |
Peter D. |
Subject: |
Re: Should "df --portability" allow thousands separators? |
Date: |
Mon, 26 Feb 2007 22:10:43 +1100 |
User-agent: |
KMail/1.9.4 |
On Monday 26 February 2007 19:13, Paul Eggert wrote:
> "Peter D." <address@hidden> writes:
> > I am sufficiently ignorant of POSIX that df could be in completely
> > compliant and I would not know.
>
> It does conform, since you're in an en_US.UTF-8 locale, not the POSIX
> locale. Also, POSIX reserves environment variables like BLOCK_SIZE to
> the implementation; portable POSIX applications are not allowed to set
> them.
>
> That being said, it might make sense for -P to ignore BLOCK_SIZE and
> the like. Doing this wouldn't be 100% trivial, though; someone will
> have to think about it.
The man page says that "-P" equals "--portability" which equals POSIX and
you say POSIX allows commas (and other regional thousands separators)
therefore there is no bug in "df".
It is a pity that "--portability" can produce outputs that will surprise
programmers - unless you want to break the link between "--portability" and
POSIX.
--
sig goes here...
Peter D.
- Should "df --portability" allow thousands separators?, Peter D., 2007/02/24
- Re: Should "df --portability" allow thousands separators?, Paul Eggert, 2007/02/25
- Re: Should "df --portability" allow thousands separators?, Peter D., 2007/02/26
- Re: Should "df --portability" allow thousands separators?, Paul Eggert, 2007/02/26
- Re: Should "df --portability" allow thousands separators?,
Peter D. <=
- Re: Should "df --portability" allow thousands separators?, Jim Meyering, 2007/02/26
- Re: Should "df --portability" allow thousands separators?, Peter D., 2007/02/26
- Re: Should "df --portability" allow thousands separators?, Paul Eggert, 2007/02/27
- Re: Should "df --portability" allow thousands separators?, Jim Meyering, 2007/02/27
- Re: Should "df --portability" allow thousands separators?, Peter D., 2007/02/28
- Re: Should "df --portability" allow thousands separators?, Paul Eggert, 2007/02/28