• cally [he/they]
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    2
    ·
    1 year ago

    C: "What if everything was a sh: segmentation fault ./a.out

    • 257m@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Why would it calling the sh program? When I segfault it just says Segmentation Fault: core dumped. Maybe its because I use bash?

      • cally [he/they]
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        it depends on the segfault, i just used an example segfault shown in geeksforgeeks, in zsh it says zsh: segmentation fault \ for the first one so i changed it to sh for the comment