* src/ls.c (getenv_quoting_style, decode_switches, parse_ls_color):
Use quote() rather than quotearg(), as the latter defaults to
outputting the input unquoted.
* src/ptx.c (main): Likewise.
if (p && *p && ! set_line_length (p))
error (0, 0,
_("ignoring invalid width in environment variable COLUMNS: %s"),
- quotearg (p));
+ quote (p));
}
#ifdef TIOCGWINSZ
{
error (0, 0,
_("ignoring invalid tab size in environment variable TABSIZE: %s"),
- quotearg (p));
+ quote (p));
}
}
}
}
}
if (state == PS_FAIL)
- error (0, 0, _("unrecognized prefix: %s"), quotearg (label));
+ error (0, 0, _("unrecognized prefix: %s"), quote (label));
}
break;
else
error (0, 0,
_("ignoring invalid value of environment variable QUOTING_STYLE: %s"),
- quotearg (q_style));
+ quote (q_style));
}
}
#include "error.h"
#include "fadvise.h"
#include "quote.h"
-#include "quotearg.h"
#include "read-file.h"
#include "stdio--.h"
#include "xstrtol.h"
if (xstrtoul (optarg, NULL, 0, &tmp_ulong, NULL) != LONGINT_OK
|| ! (0 < tmp_ulong && tmp_ulong <= INT_MAX))
error (EXIT_FAILURE, 0, _("invalid gap width: %s"),
- quotearg (optarg));
+ quote (optarg));
gap_size = tmp_ulong;
break;
}
if (xstrtoul (optarg, NULL, 0, &tmp_ulong, NULL) != LONGINT_OK
|| ! (0 < tmp_ulong && tmp_ulong <= INT_MAX))
error (EXIT_FAILURE, 0, _("invalid line width: %s"),
- quotearg (optarg));
+ quote (optarg));
line_width = tmp_ulong;
break;
}