fix stderr

This commit is contained in:
nora 2024-08-26 21:58:36 +02:00
parent a59bcb069d
commit 187478464c
4 changed files with 40 additions and 9 deletions

View file

@ -1,3 +1,6 @@
#!/usr/bin/env bash
ssh -p "$PORT" "$HOST" echo jdklfsjdöklfd | grep "jdklfsjdöklfd"
# Important: redirect 2>&1 first before clobbering 1
ssh -p "$PORT" "$HOST" "echo jdklfsjdöklfd 1>&2" 2>&1 1>/dev/null | grep "jdklfsjdöklfd"