fix(cli): split tput call into two separate calls
This fixes an issue where, on some systems, `tput cols lines` does not produce "N\nM" (where N = number of columns in the terminal and M = number of lines), and instead produces "N\n", causing parsing errors.
This commit is contained in:
parent
8816508d6c
commit
beef0aef02
2 changed files with 2 additions and 2 deletions
2
bin/doom
2
bin/doom
|
@ -5,7 +5,7 @@
|
|||
:; [ -z "$tmpdir" ] && { >&2 echo "Error: failed to run Emacs with command '$EMACS'"; >&2 echo; >&2 echo "Are you sure Emacs is installed and in your \$PATH?"; exit 1; }
|
||||
:; export __DOOMPID="${__DOOMPID:-$$}"
|
||||
:; export __DOOMSTEP="$((__DOOMSTEP+1))"
|
||||
:; export __DOOMGEOM="${__DOOMGEOM:-`tput cols lines 2>/dev/null`}"
|
||||
:; export __DOOMGEOM="${__DOOMGEOM:-`tput cols 2>/dev/null`x`tput lines 2>/dev/null`}"
|
||||
:; export __DOOMGPIPE=${__DOOMGPIPE:-$__DOOMPIPE}
|
||||
:; export __DOOMPIPE=; [ -t 0 ] || __DOOMPIPE+=0; [ -t 1 ] || __DOOMPIPE+=1
|
||||
:; $EMACS -Q --batch --load "$0" -- "$@" || exit=$?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue