pesterhazy / bash2bb

44 stars 1 forks source link

Redirection of stderr #2

Closed dundalek closed 1 year ago

dundalek commented 1 year ago

Given:

bash -c "echo foo >&2" 2> /dev/null

Translates to following to which ends up printing foo:

(shell {:out "/dev/null"} "bash" "-c" "echo foo >&2")

Expected: Should be translated as a script that prints nothing, so instead of :out it should use :err:

(shell {:err "/dev/null"} "bash" "-c" "echo foo >&2")