search for: str_sort

Displaying 8 results from an estimated 8 matches for "str_sort".

2017 Oct 21
1
split() - unexpected sorting of results
Hello, In order to solve that problem of sorting numerics made characters there is package stringr, functions str_sort and str_order. library(stringr) set.seed(2447) x <- sample(11L) sort(as.character(x)) [1] "1" "10" "11" "2" "3" "4" "5" "6" "7" "8" "9" str_sort(as.character(x), numeric = TR...
2017 Oct 20
2
split() - unexpected sorting of results
Thanks, for the explanation. Still, I think this is surprising bahaviour which might be handled better. Best, Peter Am 20.10.2017 9:49 nachm. schrieb "I?aki ?car" <i.ucar86 at gmail.com>: > Hi Peter, > > 2017-10-20 21:33 GMT+02:00 Peter Meissner <retep.meissner at gmail.com>: > > Hey, > > > > I found this - for me - quite surprising and puzzling
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...-1) { reply_with_perror ("asprintf"); return NULL; } diff --git a/daemon/inotify.c b/daemon/inotify.c index ed425b8..cb0a366 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -35,6 +35,8 @@ #include "optgroups.h" #ifdef HAVE_SYS_INOTIFY_H +GUESTFSD_EXT_CMD(str_sort, sort); + /* Currently open inotify handle, or -1 if not opened. */ static int inotify_fd = -1; @@ -318,7 +320,7 @@ do_inotify_files (void) return NULL; } - snprintf (cmd, sizeof cmd, "sort -u > %s", tempfile); + snprintf (cmd, sizeof cmd, "%s -u > %s", str...
2012 Aug 30
1
[PATCH] collect list of called external commands
...-1) { reply_with_perror ("asprintf"); return NULL; } diff --git a/daemon/inotify.c b/daemon/inotify.c index ed425b8..3cbb237 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -35,6 +35,8 @@ #include "optgroups.h" #ifdef HAVE_SYS_INOTIFY_H +GUESTFS_EXT_CMD(str_sort, sort); + /* Currently open inotify handle, or -1 if not opened. */ static int inotify_fd = -1; @@ -318,7 +320,7 @@ do_inotify_files (void) return NULL; } - snprintf (cmd, sizeof cmd, "sort -u > %s", tempfile); + snprintf (cmd, sizeof cmd, "%s -u > %s", str...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...{ reply_with_perror ("asprintf"); return NULL; } diff --git a/daemon/inotify.c b/daemon/inotify.c index b9bfed713..aa2350900 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -38,7 +38,6 @@ #include "optgroups.h" #ifdef HAVE_SYS_INOTIFY_H -GUESTFSD_EXT_CMD(str_sort, sort); /* Currently open inotify handle, or -1 if not opened. */ static int inotify_fd = -1; @@ -327,7 +326,7 @@ do_inotify_files (void) return NULL; } - snprintf (cmd, sizeof cmd, "%s -u > %s", str_sort, tempfile); + snprintf (cmd, sizeof cmd, "sort -u > %s&qu...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...{ reply_with_perror ("asprintf"); return NULL; } diff --git a/daemon/inotify.c b/daemon/inotify.c index b9bfed713..5ceaacfe7 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -38,7 +38,8 @@ #include "optgroups.h" #ifdef HAVE_SYS_INOTIFY_H -GUESTFSD_EXT_CMD(str_sort, sort); + +DECLARE_EXTERNAL_COMMANDS ("sort") /* Currently open inotify handle, or -1 if not opened. */ static int inotify_fd = -1; @@ -327,7 +328,7 @@ do_inotify_files (void) return NULL; } - snprintf (cmd, sizeof cmd, "%s -u > %s", str_sort, tempfile); + snp...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’