Changeset 9212 for src/Pugs/Run

Show
Ignore:
Timestamp:
02/28/06 17:56:18 (3 years ago)
Author:
audreyt
Message:

* Pugs.Run.Args: Now that autochomping is the default,

we don't need to do .=chomp anymore for -p and -n.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Run/Args.hs

    r9210 r9212  
    166166desugarDashE [] = [] 
    167167desugarDashE ((Switch 'p'):args) = desugarDashE $ 
    168     (Opt "-e" "env $_; while ($_ = =<>) { $_ = chomp($_);" : args) ++ [Opt "-e" "; say $_; }"] 
     168    (Opt "-e" "env $_; while (defined($_ = =<>)) { " : args) ++ [Opt "-e" "; say $_; }"] 
    169169desugarDashE ((Switch 'n'):args) = desugarDashE $ 
    170     (Opt "-e" "env $_; while ($_ = =<>) { $_ = chomp($_);" : args) ++ [Opt "-e" "}"] 
     170    (Opt "-e" "env $_; while (defined($_ = =<>)) { " : args) ++ [Opt "-e" "}"] 
    171171 
    172172-- -E is like -e, but not accessible as a normal parameter and used only