Ticket #3101: F3 doesn't work on .so files in FreeBSD 9.x

FreeBSD 9.x doesn't accept syntax for viewing lib) files
processed by /usr/local/libexec/mc/ext.d/misc.sh
revealing "/usr/local/libexec/mc/ext.d/misc.sh: 25: Syntax error: | unexpected".

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2013-11-08 14:02:31 +03:00
parent efa06663e2
commit 0bc183c842
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@ do_view_action() {
file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}"
;;
lib)
gplib -t "${MC_EXT_FILENAME}" || >&2 | \
@PERL@ -e '@a=split /[\s\t]+/, <>; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);'
gplib -t "${MC_EXT_FILENAME}" | \
@PERL@ -e 'while (<>) { @a=split /[\s\t]+/, $_; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);}'
;;
so)
file "${MC_EXT_FILENAME}" && nm -C -D "${MC_EXT_FILENAME}"

View File

@ -73,7 +73,7 @@ sub mc_ulib_fs_copyout
my($module, $fname) = @_;
my $tmpdir = $ENV{'TMPDIR'};
$tmpdir = '/tmp' if ($tmpdir eq '');
$tmpdir = '/tmp' if (! defined $tmpdir or $tmpdir eq '');
open(PIPE, "$gplib -tq $archive |") || die("Error in: $gplib -tq");