1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Modified select() to support plain files, too. The new code now

compares the current file position against the current file size,
  if that file is on a file system, or simply checks if there is
  any data in the file (which works for the default PIPE: device).

- The raw file descriptor structure member fd_Position is now
  always updated, regardless of whether the file supports random
  access or not.

- The wildcard escape character used in __wildcard_expand_init() was
  wrong. It should have been "'" but it was "`". Fixed.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15015 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-08-15 10:17:48 +00:00
parent 79be2279ec
commit 773035a695
4 changed files with 93 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: unistd_wildcard_expand.c,v 1.14 2005-06-26 10:23:05 obarthel Exp $
* $Id: unistd_wildcard_expand.c,v 1.15 2005-08-15 10:17:48 obarthel Exp $
*
* :ts=4
*
@@ -249,7 +249,7 @@ __wildcard_expand_init(void)
for(j = 0 ; j < arg_len ; j++)
{
if(arg[j] == '*' && last_c != '`')
if(arg[j] == '*' && last_c != '\'')
star_count++;
last_c = arg[j];
@@ -275,7 +275,7 @@ __wildcard_expand_init(void)
/* Replace each "*" with "#?". */
for(j = k = 0 ; j < arg_len ; j++)
{
if(arg[j] == '*' && last_c != '`')
if(arg[j] == '*' && last_c != '\'')
{
replacement_arg[k++] = '#';
replacement_arg[k++] = '?';