Re: BASH Programming: spaces ignored
From: Paul Pluzhnikov (ppluzhnikov-nsp_at_charter.net)
Date: 05/30/05
- Next message: Måns Rullgård: "Re: BASH Programming: spaces ignored"
- Previous message: shakahshakah_at_gmail.com: "Re: BASH Programming: spaces ignored"
- In reply to: sean_at_mail.capitalgenomix.com: "BASH Programming: spaces ignored"
- Next in thread: Hartmut Holzgraefe: "Re: BASH Programming: spaces ignored"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Måns Rullgård: "Re: BASH Programming: spaces ignored"
- Previous message: shakahshakah_at_gmail.com: "Re: BASH Programming: spaces ignored"
- In reply to: sean_at_mail.capitalgenomix.com: "BASH Programming: spaces ignored"
- Next in thread: Hartmut Holzgraefe: "Re: BASH Programming: spaces ignored"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]