Discussion:
[ast-developers] Fwd: [developer] 4732 /usr/bin/file should provide -b option for compatiblity with GNU/BSD file
Dan Shelton
2014-04-12 11:16:24 UTC
Permalink
Can we get file -b for AST file, please?

Dan

PS: Is file a shell builtin?

---------- Forwarded message ----------
From: David H?ppner <developer at lists.illumos.org>
Date: 12 April 2014 11:35
Subject: [developer] 4732 /usr/bin/file should provide -b option for
compatiblity with GNU/BSD file
To: "<developer at lists.illumos.org>" <developer at lists.illumos.org>


Hi,

webrev: http://cr.illumos.org/~webrev/0xffea/file-b-01/
issue: https://illumos.org/issues/4732

Just adds -b to the file command to skip printing of the leading filename.

thanks,
-- David


$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable 80386 Version 1, dynamically
linked, not stripped, no debugging information available
$ file -b /usr/bin/file
ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not
stripped, no debugging information available


-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/24932643-e543cc6c
Modify Your Subscription:
https://www.listbox.com/member/?member_id=24932643&id_secret=24932643-03b041a3
Powered by Listbox: http://www.listbox.com
--
Dan
Glenn Fowler
2014-04-13 21:11:32 UTC
Permalink
$ file --?b
Usage: file [ options ] [ file ... ]
OPTIONS
-b, --brief|no-filename
Suppress the output line file name prefix.
$ file --?-v
version file (AT&T Research) 2011-08-01
Post by Dan Shelton
Can we get file -b for AST file, please?
Dan
PS: Is file a shell builtin?
---------- Forwarded message ----------
From: David H?ppner <developer at lists.illumos.org>
Date: 12 April 2014 11:35
Subject: [developer] 4732 /usr/bin/file should provide -b option for
compatiblity with GNU/BSD file
To: "<developer at lists.illumos.org>" <developer at lists.illumos.org>
Hi,
webrev: http://cr.illumos.org/~webrev/0xffea/file-b-01/
issue: https://illumos.org/issues/4732
Just adds -b to the file command to skip printing of the leading filename.
thanks,
-- David
$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable 80386 Version 1, dynamically
linked, not stripped, no debugging information available
$ file -b /usr/bin/file
ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not
stripped, no debugging information available
-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
https://www.listbox.com/member/archive/rss/182179/24932643-e543cc6c
https://www.listbox.com/member/?member_id=24932643&id_secret=24932643-03b041a3
Powered by Listbox: http://www.listbox.com
--
Dan
_______________________________________________
ast-developers mailing list
ast-developers at lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140413/de3ca40a/attachment.html>
Loading...