GNU bug report logs -
#42495
Option not working in scripting mode.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42495 in the body.
You can then email your comments to 42495 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#42495
; Package
parted
.
(Thu, 23 Jul 2020 19:05:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sachiel2008 <Sachiel2008 <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Thu, 23 Jul 2020 19:05:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Seems like I accidentally deleted the last sentence. When I try the second chunk of commands, I get a invalid option error.
Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, July 23, 2020 6:13 PM, Sachiel2008 <Sachiel2008 <at> protonmail.com> wrote:
> Dear GNU
>
> I found the following command op the internet:
>
>> root <at> localhost # parted -a optimal /dev/sda
>> (parted) unit mib
>> (parted) mkpart primary 515 -1
>
> However, when I try to turn it into a part of a script like this:
>
>> root <at> localhost # parted --script /dev/sda mkpart primary 515 -1
>
> Greetings, Sachiel2008
[Message part 2 (text/html, inline)]
Reply sent
to
"Brian C. Lane" <bcl <at> redhat.com>
:
You have taken responsibility.
(Thu, 23 Jul 2020 22:53:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sachiel2008 <Sachiel2008 <at> protonmail.com>
:
bug acknowledged by developer.
(Thu, 23 Jul 2020 22:53:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 42495-close <at> debbugs.gnu.org (full text, mbox):
On Thu, Jul 23, 2020 at 06:14:35PM +0000, Sachiel2008 via Bug reports for the GNU Parted disk partition editor wrote:
> Seems like I accidentally deleted the last sentence. When I try the second chunk of commands, I get a invalid option error.
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Thursday, July 23, 2020 6:13 PM, Sachiel2008 <Sachiel2008 <at> protonmail.com> wrote:
>
> > Dear GNU
> >
> > I found the following command op the internet:
> >
> >> root <at> localhost # parted -a optimal /dev/sda
> >> (parted) unit mib
> >> (parted) mkpart primary 515 -1
> >
> > However, when I try to turn it into a part of a script like this:
> >
> >> root <at> localhost # parted --script /dev/sda mkpart primary 515 -1
You need to pass -- so that the argument parser won't try to turn -1
into an option:
parted --script -- /dev/sda mkpart primary 515 -1
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 21 Aug 2020 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 241 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.