Even GNU don't pretend they're still on 1970s terminals where ` and '
were a matching pair any more.
---
toys/other/stat.c | 2 +-
toys/posix/unlink.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
From fa394d1a91f2560d59d4575032fcb89765aa8fb1 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Wed, 5 Feb 2020 20:11:13 -0800
Subject: [PATCH] Remove old GNU style `' quoting.
Even GNU don't pretend they're still on 1970s terminals where ` and '
were a matching pair any more.
---
toys/other/stat.c | 2 +-
toys/posix/unlink.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/toys/other/stat.c b/toys/other/stat.c
index 08b278f8..37dd1808 100644
--- a/toys/other/stat.c
+++ b/toys/other/stat.c
@@ -117,7 +117,7 @@ static void print_stat(char type)
printf("%s", TT.file);
if (S_ISLNK(stat->st_mode))
if (readlink0(TT.file, toybuf, sizeof(toybuf)))
- printf(" -> `%s'", toybuf);
+ printf(" -> '%s'", toybuf);
} else if (type == 'o') out('u', stat->st_blksize);
else if (type == 's') out('u', stat->st_size);
else if (type == 't') out('x', dev_major(stat->st_rdev));
diff --git a/toys/posix/unlink.c b/toys/posix/unlink.c
index f5faab06..017ba9d6 100644
--- a/toys/posix/unlink.c
+++ b/toys/posix/unlink.c
@@ -20,5 +20,5 @@ config UNLINK
void unlink_main(void)
{
if (unlink(*toys.optargs))
- perror_exit("Couldn't unlink `%s'", *toys.optargs);
+ perror_exit("couldn't unlink '%s'", *toys.optargs);
}
--
2.25.0.341.g760bfbb309-goog
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net