Skip to content

yes command behaving unexpectedly #1209

@bdantas

Description

@bdantas

Scripts that use yes (either busybox version or coreutils version) behave unexpectedly when running in terminal emulators (e.g., havoc) running inside labwc. Some scripts litter the screen with "Broken pipe" errors or, worse, enter an infinite loop. Here is one way to trigger an infinite loop:

echo "this is a test" >test.txt
busybox yes "password" | bcrypt test.txt

I think this is because labwc disabled SIGPIPE in version 0.6.3 and the terminal emulators are inheriting the disabled signal.

Is there a way for me to restore the normal SIGPIPE behavior in my shell? Not in the whole GUI environment--just shell scripts (including those running in a terminal emulator). I use busybox ash. Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions