BSD Ports

devel/shfmt 3.14.1_2 FreeBSD

Shell script formatter

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
BSD3CLAUSE
Categories
devel
Package size
1147.3 KiB, 3417.0 KiB installed

Description

shfmt formats shell programs. It can use tabs or any number of spaces to indent.

You can feed it standard input, any number of files or any number of directories to recurse into. When recursing, it will operate on .sh and .bash files and ignore files starting with a period. It will also operate on files with no extension and a shell shebang.

If any EditorConfig files are found, they will be used to apply formatting options.

In the other systems

SystemPortVersion
FreeBSDdevel/shfmt3.14.1_2
OpenBSDdevel/shfmt3.6.0
NetBSDdevel/shfmt3.14.1
DragonFlydevel/shfmt3.11.0

Install

Binary package:

pkg install shfmt

From the ports tree:

cd /usr/ports/devel/shfmt/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	shfmt>0:devel/shfmt

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.14.1_13.14.1_1-3.12.0_23.14.1_1
FreeBSD:14:quarterly3.14.1_13.14.1_1n/a3.11.0_33.14.1_1
FreeBSD:15:latest3.14.1_13.14.1_1n/a-3.12.0_2
FreeBSD:15:quarterly3.14.1_13.14.1_1n/an/an/a
FreeBSD:16:latest3.14.13.14.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Required by 1

Configuration

No options to configure.

USES
go:modules
Service scripts
none

Files

distinfo 2
FileSizeSHA256
go/devel_shfmt/shfmt-v3.14.1/v3.14.1.mod55795c0b4d2dab2c59a017949cec731d3ba685666802ca283133415adf2932ff8d2
go/devel_shfmt/shfmt-v3.14.1/v3.14.1.zip347003744b518b28db4b256f88954b7f5461fe2d2822f6f5818b137887bf9713175e25

Commit history 8

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
3c7a309199 Adam Weinberger devel/shfmt: Update to 3.14.1
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
7adacbe471 Adam Weinberger devel/shfmt: Update to 3.14.0

The latest 5 of 8 in the history this site was built from.