From: Phillip Susi <psusi@ubuntu.com>
To: util-linux@vger.kernel.org
Subject: sfdisk does not handle whitespace the way the man page says
Date: Mon, 10 Feb 2014 15:48:32 -0500 [thread overview]
Message-ID: <52F93B20.2030703@ubuntu.com> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Forwarding from deb bug #406817:
The sfdisk man page says:
Fields are separated by whitespace, or comma or semicolon possibly
followed by whitespace; initial and trailing whitespace is ignored.
Looking at the code, it looks like it attempts to do this, but it
fails somehow. It complains about trailing junk after number when I
give it:
" 2048,2048,80"
Further, it hard codes a single space or hard tab as a field separator
rather than using isspace() and does not make allowance for treating
multiple spaces as a single separator, nor ignoring white space after
a comma or semicolon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS+TsgAAoJEI5FoCIzSKrw6KYIAI82PcZHoJSOs5v1NOppGkbJ
jO5/+9xIFcwzFEXTA3b4772qiuKhV91C04dLt/n8uBwgI2kHT2jvdssqW/8g7UPs
HeHuCdmjdjmyEzRQmNhdODmRgulb6NyUxnQdxeDvPnc4cbV/n0hfzqL3vxx4Vlr4
GuzsCXk49P0TIfLaUsQicFuH8xxARcR64n14bZ97M049fTjIsZsDq2rsEWY7NEZy
ysADmMKoxlRD16gBFj0slvo9eOWPxR+e84wdbEEYohyM+Ej4+xebKqMbiwoBd+5x
CSA8eHpJnTftmjzk9AUPoAhM0m5HDECIQZSElF+M55iKLpN+3g2vp3pb4OnREh8=
=ZsOK
-----END PGP SIGNATURE-----
reply other threads:[~2014-02-10 20:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=52F93B20.2030703@ubuntu.com \
--to=psusi@ubuntu.com \
--cc=util-linux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.