Re: suppress date() error messages?

2019-04-23 Thread Peter Buck
Thanks, Steeve. A brilliant solution I would never have thought ofbut which makes perfect sense now that I've seen it. I spent some time today developing a regex to pre-test the dates, but your solution is way more elegant. - Peter -Original Message-From: Steeve McCauley < steeve.mccau

Re: suppress date() error messages?

2019-04-23 Thread Steeve McCauley
redirect inside the $() $ x=$(date --date="bad" +%s > /dev/null 2>&1) $ echo $? 1 On Tue, Apr 23, 2019 at 8:05 AM Peter Buck wrote: > I have data that I know will contain a few bad dates. I want to > suppress the error messages. Redirection isn't working. Is there > anything I can do? > > co

suppress date() error messages?

2019-04-23 Thread Peter Buck
I have data that I know will contain a few bad dates. I want to suppress the error messages. Redirection isn't working. Is there anything I can do? coreutils version 8.28-1ubuntu1 on Ubuntu 18.04.2 LTS $ x=$(date --date="bad" +%s) > /dev/null 2>&1 date: invalid date ‘bad’

Re: [PATCH v3 4/4] stat: support statx DONT_SYNC and FORCE_SYNC flags

2019-04-23 Thread Jeff Layton
On Tue, Apr 16, 2019 at 5:23 PM Jeff Layton wrote: > > Add two new command-line options that set the appropriate hint flags in > the statx call. These are primarily used with network filesystems to > indicate what level of cache coherency the application can tolerate. > The new options are only im