From: Eric Blake <eblake@redhat.com>
To: Tormen <quickhelp@gmail.com>, dash@vger.kernel.org
Subject: Re: sed script fails to run in dash
Date: Fri, 22 Nov 2013 12:26:03 -0700 [thread overview]
Message-ID: <528FAFCB.5090807@redhat.com> (raw)
In-Reply-To: <528F9E5E.4020807@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 499 bytes --]
On 11/22/2013 11:11 AM, Tormen wrote:
> 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 ? :(
Because $'' is not (yet) in POSIX. It will be required in a future
release, but dash hasn't implemented it yet.
http://austingroupbugs.net/view.php?id=249
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
next prev parent reply other threads:[~2013-11-22 19:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 18:11 sed script fails to run in dash Tormen
2013-11-22 19:20 ` Seb
2013-11-22 19:25 ` Jonathan Nieder
2013-11-22 19:26 ` Eric Blake [this message]
2013-11-23 0:14 ` Tormen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528FAFCB.5090807@redhat.com \
--to=eblake@redhat.com \
--cc=dash@vger.kernel.org \
--cc=quickhelp@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox