Note that the sequence "\n"will not produce a newline character. You can use $'\n'(not portable) or just insert a new line as text:
myno="NO__"$'\n'
myno="NO__
"
, , .
,
[ "$(./bin/ft_putendl_fd_test.bin)" != "NO__" ]
remove-newlines ( ). , :
x=$(./bin/ft_putendl_fd_test.bin; echo x)
x=${x%x}
[ "$x" != "NO__
" ]
:
[ "$(./bin/ft_putendl_fd_test.bin; echo x)" != "NO__
x" ]