Suggestion: make command line -F imply -a

Discussion in 'Ruby' started by Robert Klemme, May 17, 2004.

  1. .... 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
     
    Robert Klemme, May 17, 2004
    #1
    1. Advertising

  2. 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.
     
    Yukihiro Matsumoto, May 17, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lucas Cowald
    Replies:
    4
    Views:
    1,111
    Tohid
    Oct 23, 2003
  2. Bernd Oninger
    Replies:
    1
    Views:
    829
    Martin Honnen
    Jul 7, 2004
  3. Replies:
    4
    Views:
    1,746
    Terry Hancock
    Apr 23, 2005
  4. Replies:
    0
    Views:
    699
  5. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    267
    Genich
    Oct 22, 2003
Loading...

Share This Page