Putting Readline code inside #ifdefs

This commit is contained in:
Haitham Gad 2013-03-09 23:18:49 -05:00 committed by Paul Beckingham
parent 60a7d2128e
commit a5f55bf2f4
6 changed files with 23 additions and 20 deletions

View file

@ -42,7 +42,7 @@ if (open my $fh, '>', 'shell.rc')
}
# Test the prompt.
my $output = qx{printf "rc:test.rc add foo\nquit" | ../src/shell/tasksh 2>&1};
my $output = qx{printf "rc:shell.rc add foo\nquit" | ../src/shell/tasksh 2>&1};
like ($output, qr/testprompt>/, 'custom prompt is being used');
# Test a simple add, then info.