Closed 0xacx closed 1 year ago
Closing this as I cannot reproduce the error.
If this error is ever encountered again, a mitigation may be setting shopt -s checkwinsize
.
Or a workaround echo text | { fold -s -w $COLUMNS 2>/dev/null || cat ;}
@mountaineerbr thank you very much for the tips! 🙏 I was not able to reproduce the error but the user had it again today, so I will give it another try.
Did any of the fixes work? Im facing the same issue, thanks!
I was having a similar issue. Turns out when running with zsh shopt command is unknown. In my case, running chatgpt command with bash in front fixed the issue. bash chatgpt <command>
Thanks so much! Also I figured out removing the column variables and that stuff fixed it for me as well
Reported on discord:
Running chatgpt in pipe mode:
cat /test_playbook.yml | ./chatgpt.sh --init-prompt-from-file ../prompts/documentation_instructions_and_format.txt
results infold: illegal width value
Assumption: The $COLUMNS variable probably is not initialized or updated properly when using pipe mode.