Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Suggestion: make command line -F imply -a

Reply
Thread Tools

Suggestion: make command line -F imply -a

 
 
Robert Klemme
Guest
Posts: n/a
 
      05-17-2004
.... 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

 
Reply With Quote
 
 
 
 
Yukihiro Matsumoto
Guest
Posts: n/a
 
      05-17-2004
Hi,

In message "Suggestion: make command line -F imply -a"
on 04/05/17, "Robert Klemme" <> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Command line option syntax error. Type Command /? for Help chuckcar Computer Support 11 04-21-2009 09:59 PM
When invoking <java> task under ant, system props do not seem to beinherited as the docs imply they should be. CLB_POST christopherLeeBedford@gmail.com Java 0 02-18-2008 12:53 AM
Run Unix shell command $ parse command line arguments in python rkoida@yahoo.com Python 4 04-23-2005 04:42 AM
Need simple command for validating xml files at the command line Bernd Oninger XML 1 07-07-2004 06:20 PM
RUN/execute a Command-Line command from an ASP page. Lucas Cowald ASP .Net 4 10-23-2003 11:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57