Changeset 79c6f9f


Ignore:
Timestamp:
2006-04-25T07:21:49Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3edaed9
Parents:
6e62132
Message:

Implemented better quoting for root command arguments.
(Support for backslashes instead of just "' quotes.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r6e62132 r79c6f9f  
    5757                                s --;
    5858                        }
     59                }
     60                else if( *s == '\\' && ( ( !q && s[1] ) || ( q && q == s[1] ) ) )
     61                {
     62                        char *cpy;
     63                       
     64                        for( cpy = s; *cpy; cpy ++ )
     65                                cpy[0] = cpy[1];
    5966                }
    6067                else if( *s == q )
Note: See TracChangeset for help on using the changeset viewer.