Re: BASH Programming: spaces ignored

From: Paul Pluzhnikov (ppluzhnikov-nsp_at_charter.net)
Date: 05/30/05


Date: Mon, 30 May 2005 07:53:12 -0700

sean@mail.capitalgenomix.com writes:

> Can anybody please give me some advise?

Read this: http://www.tldp.org/LDP/abs/html/quoting.html

> ing so it's quite possible that I'm going about this the wrong
> way.

You are. Here is your script fixed:

    #!/bin/bash
    fileserver_path="/mnt/fs/Documents/DS - Datasheets/"

    cd "$fileserver_path"
    if [ "$?" != "0" ]; then
      echo Cannot locate \"$fileserver_path\"
      exit 1
    fi

Cheers,

-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

Quantcast