package Psh
::Strategy
::Bang
;
If the input line starts with ! all remaining input will be
sent unchanged to /bin/sh
@Psh::Strategy
::Bang
::ISA
=('Psh::Strategy');
return Psh
::Strategy
::CONSUME_LINE
;
return 'pass to sh' if substr(${$_[1]},0,1) eq '!';
my $command= substr(${$_[1]},1);
if ($command =~ /^(.*)\&\s*$/) {
Psh
::OS
::fork_process
( $command, $fgflag, $command, 1);