mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
1999-11-05 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Adjust for kernel changes. * sysdeps/unix/sysv/linux/bits/types.h (__rlim_t, __rlim64_t): Make unsigned. 1999-10-04 Tim Waugh <twaugh@redhat.com> * posix/wordexp-test.c: More tests. * posix/wordexp.c (wordexp): Explicit null words should be kept. 1999-11-04 Shinya Hanataka <hanataka@abyss.rim.or.jp> * locale/programs/linereader.c (get_string): Correct type of buf2 variable. * locale/programs/ld-ctype.c (ctype_output): Store index correctly for _NL_CTYPE_INDIGITS_MB_LEN, _NL_CTYPE_INDIGITS_WC_LEN, _NL_CTYPE_INDIGITS*_MB, _NL_CTYPE_OUTDIGIT*_MB, and _NL_CTYPE_OUTDIGIT*_WC. (allocate_arrays): Completely initialize mapping tables. * locale/programs/ld-time.c (time_startup): We need the wide car string. (time_finish): Correct handling of era. (time_output): Fix a few array indeces. (time_read): Pass the repertoire map to lr_token.
This commit is contained in:
@ -89,6 +89,9 @@ struct test_case_struct
|
||||
{ 0, "foo", "\"$var\"\"$var\"", 0, 1, { "foofoo", }, IFS },
|
||||
{ 0, NULL, "'singly-quoted'", 0, 1, { "singly-quoted", }, IFS },
|
||||
{ 0, NULL, "contin\\\nuation", 0, 1, { "continuation", }, IFS },
|
||||
{ 0, NULL, "explicit ''", 0, 2, { "explicit", "", }, IFS },
|
||||
{ 0, NULL, "explicit \"\"", 0, 2, { "explicit", "", }, IFS },
|
||||
{ 0, NULL, "explicit ``", 0, 1, { "explicit", }, IFS },
|
||||
|
||||
/* Simple command substitution */
|
||||
{ 0, NULL, "$(echo hello)", 0, 1, { "hello", }, IFS },
|
||||
@ -244,6 +247,7 @@ main (int argc, char *argv[])
|
||||
if (testit (&test_case[test]))
|
||||
++fail;
|
||||
|
||||
/* Tilde-expansion tests. */
|
||||
pw = getpwnam ("root");
|
||||
if (pw != NULL)
|
||||
{
|
||||
@ -257,6 +261,17 @@ main (int argc, char *argv[])
|
||||
ts.wordv[0] = pw->pw_dir;
|
||||
ts.ifs = IFS;
|
||||
|
||||
if (testit (&ts))
|
||||
++fail;
|
||||
|
||||
ts.retval = 0;
|
||||
ts.env = pw->pw_dir;
|
||||
ts.words = "${var#~root}x";
|
||||
ts.flags = 0;
|
||||
ts.wordc = 1;
|
||||
ts.wordv[0] = "x";
|
||||
ts.ifs = IFS;
|
||||
|
||||
if (testit (&ts))
|
||||
++fail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user