Changeset 8452

Show
Ignore:
Timestamp:
03/27/08 20:02:09 (5 years ago)
Author:
yappo
Message:

lang/perl/Net-Partty: command nameを出す

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Net-Partty/trunk/example/pertty.pl

    r8450 r8452  
    7777    close $slave; 
    7878    my $shell = $ENV{SHELL} || '/bin/sh'; 
    79     exit exec $shell, '-i'; 
     79    my($name) = $shell =~ m!([^/]+)$!; 
     80    $name ||= $shell; 
     81    exit exec { $shell } $name, '-i'; 
    8082} 
    8183