URI:
       add test if command is empty - sfeed_tests - sfeed tests and RSS and Atom files
  HTML git clone git://git.codemadness.org/sfeed_tests
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 5fd3a79aca24f149713689f0387d69b59a0187e7
   DIR parent 3ab1098ac483e43da262b0ce88d893c6185fec42
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 21 Feb 2026 12:36:39 +0100
       
       add test if command is empty
       
       Diffstat:
         M test_curses.sh                      |      34 +++++++++++++++++++++++++++++++
       
       1 file changed, 34 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/test_curses.sh b/test_curses.sh
       @@ -445,6 +445,40 @@ contents="$(cat "$yankfile")"
        test "$contents" = "" || fail "Incorrect URL: $contents"
        test_end
        
       +# empty command should not exec and do nothing.
       +test_start "Pipe: empty command"
       +rm -f "$pipefile"
       +touch "$pipefile"
       +fakedata | SFEED_PIPER_INTERACTIVE="1" SFEED_PIPER="" SFEED_AUTOCMD="pq" $sc
       +status=$?
       +test $status -eq 0 || fail "Exit code must be 0, was: $status"
       +contents="$(cat "$pipefile")"
       +line1=""
       +test "$contents" = "$line1" || fail "Incorrect content: $contents, expected: $line1"
       +test_end
       +
       +# empty command should not exec and do nothing.
       +test_start "Plumb: empty command"
       +rm -f "$plumbfile"
       +touch "$plumbfile"
       +fakedata | SFEED_PLUMBER_INTERACTIVE="1" SFEED_PLUMBER="" SFEED_AUTOCMD="oq" $sc
       +status=$?
       +test $status -eq 0 || fail "Exit code must be 0, was: $status"
       +contents="$(cat "$plumbfile")"
       +test "$contents" = "" || fail "Incorrect URL: $contents"
       +test_end
       +
       +# empty command should not exec and do nothing.
       +test_start "Yank: empty command"
       +rm -f "$yankfile"
       +touch "$yankfile"
       +fakedata | SFEED_YANKER_INTERACTIVE="1" SFEED_YANKER="" SFEED_AUTOCMD="$($printf '/\b3\b2\nyq')" $sc
       +status=$?
       +test $status -eq 0 || fail "Exit code must be 0, was: $status"
       +contents="$(cat "$yankfile")"
       +test "$contents" = "" || fail "Incorrect URL: $contents"
       +test_end
       +
        test_start "Test \$SFEED_FEED_PATH"
        rm -f "$yankfile"
        touch "$yankfile"