Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-12 Thread 李国
Hi Etienne Champetier, You are right. CentOS 7 is ok, but CentOS 6 fail. on CentOS 7 $ sh -c 'time --version' GNU time 1.7 but on CentOS 6 $ sh -c 'time --version' sh: --version: command not found real0m0.001s user0m0.000s sys 0m0.000s Thanks! 2018-07-11 3:38 GMT+08:00 Etienne Cha

Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-10 Thread Etienne Champetier
Hi, 2018-07-08 15:50 GMT+02:00 李国 : > Hi Jon Burgess > this patch works good. thanks. > diff --git a/include/prereq.mk b/include/prereq.mk > index 0f0f253744..173461e36f 100644 > --- a/include/prereq.mk > +++ b/include/prereq.mk > @@ -95,7 +95,7 @@ define SetupHostCommand > if [ -n

Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-08 Thread 李国
Hi Jon Burgess this patch works good. thanks. diff --git a/include/prereq.mk b/include/prereq.mk index 0f0f253744..173461e36f 100644 --- a/include/prereq.mk +++ b/include/prereq.mk @@ -95,7 +95,7 @@ define SetupHostCommand if [ -n "cmd" ]; then \ bin=

Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-07 Thread 李国
Hi Jon Burgess \time like "time" makes which fail 2018-07-08 0:11 GMT+08:00 Jon Burgess : > On Sat, 2018-07-07 at 16:23 +0800, 李国 wrote: >> Hi Etienne Champetier >> >> time command detect fail on centos. >> >> time is a keyword of bash on centos 6 and centos 7, and it not accept >> --version opti

Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-07 Thread Jon Burgess
On Sat, 2018-07-07 at 16:23 +0800, 李国 wrote: > Hi Etienne Champetier > > time command detect fail on centos. > > time is a keyword of bash on centos 6 and centos 7, and it not accept > --version option, this makes time --version 2>&1 | grep GNU always > fail. Does using \time instead help? J

Re: [OpenWrt-Devel] time command detect fail on centos

2018-07-07 Thread Lucian Cristian
On 07.07.2018 11:23, 李国 wrote: maybe $(shell which time) --version 2>&1 | grep GNU works good on centos6 Regards ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] time command detect fail on centos

2018-07-07 Thread 李国
Hi Etienne Champetier time command detect fail on centos. time is a keyword of bash on centos 6 and centos 7, and it not accept --version option, this makes time --version 2>&1 | grep GNU always fail. 'time' --version 2>&1 | grep GNU works good, but it makes micro SetupHostCommand fail, as it e