Skip to content

Commit

Permalink
do not use -o option for column
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Oct 5, 2023
1 parent 8827a38 commit 0e80fbe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
****************************************************************************
# ChangeLog for lesspipe.sh #
****************************************************************************
Version 2.10 Oct 05 2023
- column does not accept -o option (BSD systems)
Version 2.09 Oct 03 2023
- preferred display of csv files is through the program column
- language recognition for bat improved
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# lesspipe.sh, a preprocessor for less

Version: 2.09
Version: 2.10
Author : Wolfgang Friebel [wp.friebel@gmail.com](mailto://wp.friebel@gmail.com)
License: GPL

Expand Down
4 changes: 2 additions & 2 deletions lesspipe.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# lesspipe.sh, a preprocessor for less
lesspipe_version=2.09
lesspipe_version=2.10
# Author: Wolfgang Friebel (wp.friebel AT gmail.com)
#( [[ -n 1 && -n 2 ]] ) > /dev/null 2>&1 || exec zsh -y --ksh-arrays -- "$0" ${1+"$@"}

Expand Down Expand Up @@ -583,7 +583,7 @@ isfinal () {
has_cmd ccze && [[ $COLOR = *always ]] && ccze -A < "$1"
return ;;
csv)
{ has_cmd column && cmd=(column -o "|" -s " ,;" -t "$1"); } ||
{ has_cmd column && cmd=(column -s " ,;" -t "$1"); } ||
{ has_cmd pandoc && cmd=(pandoc -f csv -t plain "$1"); } ;;
json)
[[ $COLOR = *always ]] && opt=(-C .) || opt=(.)
Expand Down
2 changes: 1 addition & 1 deletion packaging/lesspipe.spec
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ cd $RPM_BUILD_DIR
%docdir %{prefix}/share/man/man1

%changelog
* Tue Oct 03 2023 2.09-1 - wp.friebel@gmail.com
* Tue Oct 05 2023 2.10-1 - wp.friebel@gmail.com
- added zlib support, recognize jsx and tsx, view csv files using column
* Mon Jun 26 2023 2.08-1 - wp.friebel@gmail.com
- improved coloring output, support for device tree blob files, bug fixes
Expand Down

0 comments on commit 0e80fbe

Please sign in to comment.