From owner-freebsd-questions@FreeBSD.ORG Mon Feb 15 06:07:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB76106566B for ; Mon, 15 Feb 2010 06:07:52 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC638FC14 for ; Mon, 15 Feb 2010 06:07:52 +0000 (UTC) Received: by qyk29 with SMTP id 29so2510187qyk.13 for ; Sun, 14 Feb 2010 22:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=EtXhlJtFSEpK22U6WOThZCwxf3745FItzCjlZWhkSY8=; b=qlylwhhI43cMO28jCqbwzURiqmaA76ouvWULUiFEDtFtEP+oNfsZXWnN4Jmpr57SNr /cYfVvTMfpae+DuLClKV6z9jvG+2+9FyMPbV2VnoqXukLvI7Yapg6sPZVN7LLQgxrXqw r0+pE+HC+V3C3rmSsT0TQlfkHHATSn7fyiczs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VdNGgBFttnAvTlc/iEDKnbfGbImZ5fQriWwGJcKCO74wwI4EOOwfzcl/7HTwruNhn1 mBFTslpa8RqkLiAgsOW3HGcryDmrDXzu9w9XbkvKjpl9ybIAavEEvofv02K/Bi3p2uJW YvWpGoEm7jbEYy6sOi7m7o3KESw2DXxN8ebJI= MIME-Version: 1.0 Received: by 10.229.11.219 with SMTP id u27mr1902588qcu.10.1266214071744; Sun, 14 Feb 2010 22:07:51 -0800 (PST) Date: Sun, 14 Feb 2010 22:07:50 -0800 Message-ID: <560f92641002142207w7eade79fr6a4f40ae5b92f4b9@mail.gmail.com> From: Nerius Landys To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: simple (and stupid) shell scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 06:07:52 -0000 #!/bin/sh I have these lines in my script: DIRNAME="`dirname \"$0\"`" cd "$DIRNAME" SCRIPTDIR="`pwd`" What if I got rid of extra double quotes? Like this: DIRNAME=`dirname \"$0\"` cd "$DIRNAME" SCRIPTDIR=`pwd` Does this behave any differently in any kind of case? Are thes double quotes just superfluous?