Hi, I am puzzled and don't know why this command does not work with dash (I am currently using the debian stable (v7.2) version of dash (v0.5.7-3)): echo 1>/tmp/x; reponse=$( sed -e $(wc -l </tmp/x)$'{w/dev/stdout\n;d}' -i /tmp/x ); echo "reponse='$reponse'" but also just this line: sed -e 1$'{w/dev/stdout\n;d}' -i /tmp/x in a dash script will yield the error message: sed: -e expression #1, char 2: unknown command: `$' But why ? :( I would be really grateful for any explanation. Thanks a lot in advance for any hint! Tormen P.S.: The source for the above line is: http://stackoverflow.com/questions/13804967/bash-pop-lines-in-a-file -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html