lorder reports errors; for example, from mktemp

Bug #1815607 reported by Mark Rudolph
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bsdmainutils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If you run the lorder script from package bsdmainutils (version 11.1.2ubuntu1) on Ubuntu 18.04.1 LTS it reports several errors:

$ lorder a.o b.o
mktemp: too few X's in template ‘_reference_’
mktemp: too few X's in template ‘_symbol_’
a.o a.o
b.o b.o
sed: couldn't open file : No such file or directory
expr: Invalid character class name
/usr/bin/lorder: 80: [: -ne: unexpected operator
sort: option requires an argument -- 'o'
Try 'sort --help' for more information.
sort: option requires an argument -- 'o'
Try 'sort --help' for more information.
join: missing operand after '2.1'
Try 'join --help' for more information.

It seems the new script invokes mktemp with an invalid template.

I expected the program not to generate errors; they did not occur on Ubuntu 14.04.5 LTS (package version 9.0.5ubuntu1).

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: bsdmainutils 11.1.2ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-45.48-generic 4.15.18
Uname: Linux 4.15.0-45-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Feb 12 13:30:19 2019
InstallationDate: Installed on 2019-01-03 (39 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: bsdmainutils
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mark Rudolph (mark.rudolph) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bsdmainutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick Hibma (coroos) wrote :

This is due to a difference in the way GNU and BSD versions handle the -t argument. The BSD version assumes that it can add XXX if it likes to.

See both man pages. The BSD version calls the argument a prefix, which the GNU version 'a single file name component'.

Revision history for this message
Nick Hibma (coroos) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.