bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parted --script /dev/sda mkpartfs primary 228 -0 (problem)


From: Andrew Clausen
Subject: Re: parted --script /dev/sda mkpartfs primary 228 -0 (problem)
Date: Fri, 12 Jul 2002 22:19:08 +1000
User-agent: Mutt/1.3.28i

On Fri, Jul 12, 2002 at 06:02:42AM -0500, Jeff Sheffield wrote:
> Hi,
> 
> I am having problems with the -0 flag on the 
> command line. (I guess this is really a bash problem)
> 
> parted --script /dev/sda mkpartfs primary ext2 228 -0
> parted: invalid option --   1
> 
> now I gather that what is happening is that parted 
> sees -0 as the next command line argument (like --scripted)
> so how do I escape that (in bash).

Stick a -- after the last "real" --option.

parted --script -- /dev/sda mkpartfs primary ext2 228 -0

Cheers,
Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]