Skip to main content
Commonmark migration
Source Link

#Bash, 4 bytes

Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Explained

Recursive "source" (.) operation causes a stack overflow eventually, and as Bash does not integrate with libsigsegv, this results in a SIGSEGV.

Note that this is not a bug, but an expected behavior, as discussed here.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

#Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Explained

Recursive "source" (.) operation causes a stack overflow eventually, and as Bash does not integrate with libsigsegv, this results in a SIGSEGV.

Note that this is not a bug, but an expected behavior, as discussed here.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Explained

Recursive "source" (.) operation causes a stack overflow eventually, and as Bash does not integrate with libsigsegv, this results in a SIGSEGV.

Note that this is not a bug, but an expected behavior, as discussed here.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

added 356 characters in body
Source Link
zeppelin
  • 8.5k
  • 3
  • 22
  • 42

#Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Explained

Recursive "source" (.) operation causes a stack overflow eventually, and as Bash does not integrate with libsigsegv, this results in a SIGSEGV.

Note that this is not a bug, but an expected behavior, as discussed here.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

#Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

#Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Explained

Recursive "source" (.) operation causes a stack overflow eventually, and as Bash does not integrate with libsigsegv, this results in a SIGSEGV.

Note that this is not a bug, but an expected behavior, as discussed here.

Test

./bang Segmentation fault (core dumped) 

Try It Online !

Source Link
zeppelin
  • 8.5k
  • 3
  • 22
  • 42

#Bash, 4 bytes

Golfed

. $0 

Recursively include the script into itself.

Test

./bang Segmentation fault (core dumped) 

Try It Online !