Ignore:
Timestamp:
06/15/20 19:10:36 (4 years ago)
Author:
nanardon
Message:

Few fixes in la-cli

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Base.pm

    r2399 r2400  
    9494                    foreach(sort $labase->list_canonical_fields($args[0], 'a')) { 
    9595                        my $attr = $labase->attribute($args[0], $_); 
    96                         $self->printf("%s   %s\n", ($attr ? ($attr->ro ? 'r ' : 'rw') : '  '), $_); 
     96                        $self->printf( 
     97                            "%s   %s%s\n", 
     98                            ($attr ? ($attr->ro ? 'r ' : 'rw') : '  '), 
     99                            $_, 
     100                            $attr->reference ? ' (=> ' . $attr->reference . ')' : '', 
     101                        ); 
    97102                    } 
    98103                } else { 
     
    500505    my ($op, $shellLine, $internalLine); 
    501506 
    502     if ($cmdLine =~ /^(.*?)(?<![\\|])([\|\>])\s*([^\|].*)?$/) { 
     507    if ($cmdLine =~ /^(.*?)(?<![\S\\|])([\|\>])\s*([^\|].*)?$/) { 
    503508        $internalLine = $1; 
    504509        $op = $2; 
Note: See TracChangeset for help on using the changeset viewer.