Dan Shelton
2014-04-12 11:16:24 UTC
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
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
Dan