Re: bugs in cd

2009-08-31 Thread Eric Blake
According to Eric Blake on 7/14/2009 3:39 PM: For the cd command, POSIX 2008 requires that after all pathnames in CDPATH have been tested and failed in step 5, then step 6 interprets the directory argument relative to PWD. In other words, this demonstrates a bug: $ dash -c 'cd /tmp;

Re: avoid compiler warning

2009-08-31 Thread Eric Blake
According to Herbert Xu on 8/11/2009 3:56 PM: On Tue, Aug 11, 2009 at 09:33:43AM -0700, H. Peter Anvin wrote: Herbert... the *type* is int, but the *value* has to be in the range [-1,UCHAR_MAX] or the behavior is undefined in both the C and POSIX standards. Good point. I'll apply the

Re: bugs in cd

2009-08-31 Thread Herbert Xu
On Tue, Jul 14, 2009 at 09:39:03PM +, Eric Blake wrote: For the cd command, POSIX 2008 requires that after all pathnames in CDPATH have been tested and failed in step 5, then step 6 interprets the directory argument relative to PWD. In other words, this demonstrates a bug: $ dash

Re: Allow dash to build with i18n version of Coreutils

2009-08-31 Thread Herbert Xu
On Mon, Aug 31, 2009 at 08:19:24AM -0600, Matthew Burgess wrote: su-4.0$ echo $LANG en_GB.UTF-8 su-4.0$ sort -u -k 3,3 builtins 0 . -s dotcmd su-4.0$ LC_ALL=C sort -u -k 3,3 builtins 21 local -a localcmd 14 export -as exportcmd 3 alias