Suggestion: make command line -F imply -a

R

Robert Klemme

.... 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
 
Y

Yukihiro Matsumoto

Hi,

In message "Suggestion: make command line -F imply -a"

|.... 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top