/* Test of filtering of data through a subprocess.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009-2011 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2009.
This program is free software: you can redistribute it and/or modify
#include "macros.h"
-/* Pipe a text file through 'tr a-z A-Z', which converts ASCII characters from
- lower case to upper case. */
+/* Pipe a text file through 'tr "[a-z]" "[A-Z]"', which converts ASCII
+ characters from lower case to upper case. */
struct locals
{
l.nread = 0;
argv[0] = tr_program;
- argv[1] = "a-z";
- argv[2] = "A-Z";
+ argv[1] = "[a-z]";
+ argv[2] = "[A-Z]";
argv[3] = NULL;
result = pipe_filter_ii_execute ("tr", tr_program, argv, false, true,