Jilles Tjoelker dixit:

>  echo "`\"pwd\"`"

This is the one I am talking about; the other three are
the same currently.

>What's more, the Bourne shell and ksh93 sometimes require \", for
>example in
>  echo "`echo \"a b c\"` pwd"

Fun, this shows a difference. I get
   a b c pwd
in regular mode and
   "a b c" pwd
in POSIX mode.

>If the backslashes are omitted, the command is parsed as
>  echo "`echo `"a b c"` pwd`"

Ouch. But IIRC that’s UB anyway. I get
   a b c pwd
in both modes for that, in mksh.


In the end, we’re no further than before – we know that my and
the yash developers’ reading of the standard conflicts with
historic practice, Bourne shell and, apparently, ksh93, just we
have an(other) example now.

But thanks for the detail information anyway.

Groeten
//mirabilos
-- 
<ch> you introduced a merge commit        │<mika> % g rebase -i HEAD^^
<mika> sorry, no idea and rebasing just fscked │<mika> Segmentation
<ch> should have cloned into a clean repo      │  fault (core dumped)
<ch> if I rebase that now, it's really ugh     │<mika:#grml> wuahhhhhh

Reply via email to