On 1/12/21 at 10:22 AM,
chris....@gmail.com (Christopher
The default (OS-provided) zsh is '/bin/zsh' so perhaps you've
installed another version via Homebrew (or similar).
Also, a couple points about your filter:
Since BBEdit sends the contents of the frontmost document (or
selection) to the filter on STDIN and 'sort' will accept data on
STDIN, the "$1" is superfluous.
Likewise, since BBEdit expects the filter to provide output on
STDOUT, there's no need to pipe to the 'bbedit' tool, so please
try this:
========
#!/bin/zsh
sort | uniq | sort -nr
========
Regards
Patrick Woolsey
==
Bare Bones Software, Inc. <
https://www.barebones.com/>