use >&2 instead of >/dev/stderr
This commit is contained in:
parent
6a609c75d0
commit
9874f01cfb
2 changed files with 4 additions and 4 deletions
4
dotoolc
4
dotoolc
|
@ -3,7 +3,7 @@ if [ $# != 0 ]; then
|
||||||
echo 'dotoolc writes its stdin to the pipe being read by dotoold.
|
echo 'dotoolc writes its stdin to the pipe being read by dotoold.
|
||||||
dotoolc will exit immediately if the pipe is not being read.
|
dotoolc will exit immediately if the pipe is not being read.
|
||||||
The path of the pipe is $DOTOOL_PIPE else /tmp/dotool_pipe.
|
The path of the pipe is $DOTOOL_PIPE else /tmp/dotool_pipe.
|
||||||
' > /dev/stderr
|
' >&2
|
||||||
[ "$1" = -h ] || [ "$1" = --help ]; exit
|
[ "$1" = -h ] || [ "$1" = --help ]; exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ if [ -p "$p" ] && ! [ -w "$p" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! fifo_being_read "$p"; then
|
if ! fifo_being_read "$p"; then
|
||||||
echo 'dotoolc: dotoold is not connected' > /dev/stderr
|
echo 'dotoolc: dotoold is not connected' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
exec cat > "$p"
|
exec cat > "$p"
|
||||||
|
|
4
dotoold
4
dotoold
|
@ -3,7 +3,7 @@ if [ $# != 0 ]; then
|
||||||
echo 'dotoold runs dotool reading from a pipe for dotoolc to write to.
|
echo 'dotoold runs dotool reading from a pipe for dotoolc to write to.
|
||||||
dotoold will exit immediately if the pipe is already being read.
|
dotoold will exit immediately if the pipe is already being read.
|
||||||
The path used for the pipe is $DOTOOL_PIPE else /tmp/dotool_pipe.
|
The path used for the pipe is $DOTOOL_PIPE else /tmp/dotool_pipe.
|
||||||
' > /dev/stderr
|
' >&2
|
||||||
[ "$1" = -h ] || [ "$1" = --help ]; exit
|
[ "$1" = -h ] || [ "$1" = --help ]; exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ fifo_being_read(){
|
||||||
p="${DOTOOL_PIPE:-/tmp/dotool_pipe}"
|
p="${DOTOOL_PIPE:-/tmp/dotool_pipe}"
|
||||||
|
|
||||||
if fifo_being_read "$p" 2> /dev/null; then
|
if fifo_being_read "$p" 2> /dev/null; then
|
||||||
echo 'dotoold: another instance is already connected' > /dev/stderr
|
echo 'dotoold: another instance is already connected' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue