[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parted --script /dev/sda mkpartfs primary 228 -0 (problem)
From: |
Jeff Sheffield |
Subject: |
Re: parted --script /dev/sda mkpartfs primary 228 -0 (problem) |
Date: |
Fri, 12 Jul 2002 09:40:38 -0500 |
User-agent: |
Mutt/1.2.5.1i |
> Stick a -- after the last "real" --option.
thanks! that worked like a charm...
is using "--" to indicate no more options
a shell thing or a parted thing? I poked around
the LDP bash howto's and could not find reference to "--"
On Fri, Jul 12, 2002 at 10:19:08PM +1000, Andrew Clausen wrote:
> 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
Thanks,
Jeff
---------------------------------------------------------------
| Shelfware: The art of practicing one's skill to perfection |
| without an audience to appreciate it. |
| -- Michelle Dear |
---------------------------------------------------------------
| Jeff Sheffield |
| address@hidden |
| AIM=JeffShef ICQ=4340529 Yahoo=jsheffieus |
| APC Inc. http://www.apcinc.com (day gig) |
---------------------------------------------------------------