/usr/bin/file fails with Bash process substitution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
osFileManager |
Unknown
|
Unknown
|
|||
file (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
== System information ==
Description: Ubuntu 16.04.5 LTS
Release: 16.04
file:
Installed: 1:5.25-2ubuntu1.1
Candidate: 1:5.25-2ubuntu1.1
Version table:
*** 1:5.25-2ubuntu1.1 500
500 http://
500 http://
100 /var/lib/
1:
500 http://
== Expected behavior ==
$ /usr/bin/file <( echo '#!/bin/sh' )
/dev/fd/63: POSIX shell script, ASCII text executable
== Actual behavior ==
$ /usr/bin/file <( echo '#!/bin/sh' )
/dev/fd/63: broken symbolic link to pipe:[10687339]
Note that Bash process substitution does work properly in general:
$ /bin/cat <( echo '#!/bin/sh' )
#!/bin/sh
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: file 1:5.25-2ubuntu1.1
ProcVersionSign
Uname: Linux 4.15.0-30-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Aug 24 18:07:43 2018
Dependencies:
gcc-6-base 6.0.1-0ubuntu1
libc6 2.23-0ubuntu10
libgcc1 1:6.0.1-0ubuntu1
libmagic1 1:5.25-2ubuntu1.1
zlib1g 1:1.2.8.
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-11-01 (661 days ago)
InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 20160624-10:47
SourcePackage: file
UpgradeStatus: No upgrade log present (probably fresh install)
Reported upstream at https:/ /bugs.astron. com/view. php?id= 32