From owner-freebsd-questions Sat Jun 1 6:26:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from groggy.anc.acsalaska.net (groggy.anc.acsalaska.net [208.151.119.232]) by hub.freebsd.org (Postfix) with ESMTP id 2896937B406 for ; Sat, 1 Jun 2002 06:25:41 -0700 (PDT) Received: (from abc@localhost) by groggy.anc.acsalaska.net (8.11.6/8.11.6) id g51DNsD42542 for "freebsd-questions" ; Sat, 1 Jun 2002 13:23:54 GMT (envelope-from abc@anchorageinternet.org) Date: Sat, 1 Jun 2002 13:23:54 GMT From: Abc Xyz Message-Id: <200206011323.g51DNsD42542@groggy.anc.acsalaska.net> Subject: burncd parsing X-Mailer: Umail v2.3 To: "freebsd-questions" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG FBSD 4.5 question: why does this work ... burncd -f /dev/cdrom -s 4 data /tmp/cd9660.iso and this crash? x=""; burncd "$x" -f /dev/cdrom -s 4 data /tmp/cd9660.iso burncd: no data format selected: Undefined error: 0 i can't tell if it's sh parsing problem, or a burncd problem. (i wanted to use "$x" to hold the possible "dummy write" option) i am guessing the sh is passing a null argument to burncd (i am not sure if sh should do that ...), and burncd is crashing on it cuz it doesn't use getopt() and isn't parsing well? i notice burncd is very specific about the order of it's options. thank you. please Cc off list. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message