0

When I try to use Linux watch with a command which returns color output, I get the error: segmentation fault (core dumped).

The command itself is the following:

watch --color --no-title --interval 1 ls\ --color

If I remove either --no-title or --color (from watch or ls), the error doesn't show up.

What can be the reason of the error?

Arch; watch from procps-ng 3.3.11; zsh 5.1.1; GNU bash 4.3.4.2

  • I suspect you might have a faulty memory chip. – Rui F Ribeiro Nov 18 '15 at 15:52
  • 1
    I filed an issue. – Shamaoke Nov 18 '15 at 16:39
0

Works like a charm.... Which watch package do you have?....

# watch -v
watch from procps-ng 3.3.9

# watch --help

    Usage:
     watch [options] command

        Options:
        [..]
          -c, --color            interpret ANSI color sequences
        [..]
          -t, --no-title         turn off header
        [..]
  • watch from procps-ng 3.3.11 – Shamaoke Nov 18 '15 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.