summaryrefslogtreecommitdiff
path: root/src/truncate.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-09 21:33:37 +0100
committerJim Meyering <meyering@redhat.com>2012-01-09 21:49:51 +0100
commit84e742fab42ac270a1cbc548d4a6f6ac82c8124a (patch)
tree70e5bdbca6ff8ca06b9477e8ee2d4fedc8dbe99e /src/truncate.c
parent8ac05f82a263364310dc9d8bfd734c478c03fbdd (diff)
downloadcoreutils-84e742fab42ac270a1cbc548d4a6f6ac82c8124a.tar.xz
maint: prep for global quoting changes: handle irregular cases manually
* src/chroot.c (usage): Change ``...'' to '...', and describe the default more accurately (also adding quotes): s,/bin/sh,'/bin/sh -i', * src/join.c (usage): Change ` ...'' ' to "...''". * src/fmt.c (isopen): Change `' to '` in list of bytes, so that a subsequent change can safely perform the `...' to '...' conversion. * src/truncate.c (main): Tweak quoting in comments to use '...', not `...`, for consistency with the rest of comments in coreutils.
Diffstat (limited to 'src/truncate.c')
-rw-r--r--src/truncate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/truncate.c b/src/truncate.c
index 29cb2fa36..5bc541c97 100644
--- a/src/truncate.c
+++ b/src/truncate.c
@@ -366,10 +366,10 @@ main (int argc, char **argv)
{
if ((fd = open (fname, oflags, omode)) == -1)
{
- /* `truncate -s0 -c no-such-file` shouldn't gen error
- `truncate -s0 no-such-dir/file` should gen ENOENT error
- `truncate -s0 no-such-dir/` should gen EISDIR error
- `truncate -s0 .` should gen EISDIR error */
+ /* 'truncate -s0 -c no-such-file' shouldn't gen error
+ 'truncate -s0 no-such-dir/file' should gen ENOENT error
+ 'truncate -s0 no-such-dir/' should gen EISDIR error
+ 'truncate -s0 .' should gen EISDIR error */
if (!(no_create && errno == ENOENT))
{
error (0, errno, _("cannot open %s for writing"),