Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: script(1) bug?
On Fri, Aug 28, 2026 at 10:15:04AM +0200, Thomas Klausner wrote:
> Hi!
>
> jq has set up a NetBSD runner on github (i.e. using qemu) and reports
> a weird problem in script: When the command returns too quickly, the
> output file is empty.
>
> https://github.com/jqlang/jq/pull/3600#issuecomment-5449885827
>
> I can't reproduce this on my (bare-metal) machine, can someone please
> try to reproduce it?
>
> for i in $(jot 100); do
> : > typescript
> script -qc echo > /dev/null
> [ ! -s typescript ] && echo ERROR
> done | uniq -c
I couldn't reproduce it, but reading the script man page I wouldn't have
expected -c echo to work at all (run "echo" instead of the shell - doesn't
make sense to me as echo only exists as a builtin; I guess what it really
does is invoke "${SHELL} -c ..." instead of plain "${SHELL}").
Martin
Home |
Main Index |
Thread Index |
Old Index