-#!/bin/bash
+#!/usr/bin/env bash
test_description='"notmuch new" in several variations'
. ./test-lib.sh
mkdir -p "$(dirname "$tmp_msg_filename")"
mv "$gen_msg_filename" "$tmp_msg_filename"
increment_mtime "${MAIL_DIR}"
-$NOTMUCH new > /dev/null
+notmuch new > /dev/null
mv "$tmp_msg_filename" "$gen_msg_filename"
increment_mtime "${MAIL_DIR}"
output=$(NOTMUCH_NEW)
test_begin_subtest "Renamed message"
generate_message
-$NOTMUCH new > /dev/null
+notmuch new > /dev/null
mv "$gen_msg_filename" "${gen_msg_filename}"-renamed
increment_mtime "${MAIL_DIR}"
output=$(NOTMUCH_NEW)
generate_message [dir]=dir
generate_message [dir]=dir
-$NOTMUCH new > /dev/null
+notmuch new > /dev/null
mv "${MAIL_DIR}"/dir "${MAIL_DIR}"/dir-renamed
increment_mtime "${MAIL_DIR}"