implement fork command
bugfix in read_string_data not setting mask correctly for # and % commands