Suggestion: make command line -F imply -a

… or issue a warning if -a was omitted but -F given:

13:30:52 [DataCollector]: ruby --version
ruby 1.8.1 (2003-12-25) [i386-cygwin]
13:31:03 [DataCollector]: echo “foo bar” | ruby -n -F\s+ -e 'p $F’
nil
13:31:27 [DataCollector]: echo “foo bar” | ruby -n -aF\s+ -e ‘p $F’
[“foo”, “bar”]

Would come handy in finding some errors faster.

Kind regards

robert

Hi,

···

In message “Suggestion: make command line -F imply -a” on 04/05/17, “Robert Klemme” bob.news@gmx.net writes:

… or issue a warning if -a was omitted but -F given:

-F sets field separator, which is sometimes useful without -a.
But I was thinking no one uses -F, so that most of “real users”
request -F to be with -a, I’d consider it.

						matz.