FS#75148 - [file] command via pipe bug

Attached to Project: Arch Linux
Opened by yangling (yangling) - Thursday, 23 June 2022, 05:24 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 16 September 2022, 06:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

1: cat abc.sh file content
yangl@MyTYWorkPC ~ % cat /tmp/abc.sh
#!/bin/sh

true

A1 case:
yangl@MyTYWorkPC ~ % ls /tmp/abc.sh|file -f -
/: POSIX shell script, ASCII text executable

A2 case:
yangl@MyTYWorkPC ~ % ls /tmp/abc.sh|xargs file -f
#!/bin/sh: cannot open `#!/bin/sh' (No such file or directory)
: cannot open `' (No such file or directory)
true: cannot open `true' (No such file or directory)

A3 case:
yangl@MyTYWorkPC ~ % file -f /tmp/abc.sh
#!/bin/sh: cannot open `#!/bin/sh' (No such file or directory)
: cannot open `' (No such file or directory)
true: cannot open `true' (No such file or directory)

A1: is error..

package file-5.41-1 output is same A2 and A3 case. but file-5.42-1 is not our expectant。
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Friday, 16 September 2022, 06:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  file 5.43-1
Comment by loqs (loqs) - Thursday, 23 June 2022, 07:47 GMT

Loading...