simple (and stupid) shell scripting question
- From: Nerius Landys <nlandys@xxxxxxxxx>
- Date: Sun, 14 Feb 2010 22:07:50 -0800
#!/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?
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: simple (and stupid) shell scripting question
- From: Christian Weisgerber
- Re: simple (and stupid) shell scripting question
- From: Eray Aslan
- Re: simple (and stupid) shell scripting question
- Prev by Date: GPT disks and multibooting?
- Next by Date: Re: simple (and stupid) shell scripting question
- Previous by thread: GPT disks and multibooting?
- Next by thread: Re: simple (and stupid) shell scripting question
- Index(es):
Relevant Pages
|