Bash Scripting Problem

Heitor Moraes heitor.moraes at gmail.com
Tue May 20 17:44:09 UTC 2008


` not '

COMMAND=`ls "test dir 1"`

On Tue, May 20, 2008 at 2:31 PM, Thomas Kappelmueller
<tkappelmueller at thomas-krenn.com> wrote:
> Hello!
>
> I hope this place is ok to ask this question.
> I am using Fedora 8.
>
> Example:
> #!/bin/bash
>
> COMMAND='ls "test dir 1"'
>
> $COMMAND #have tried $($COMMAND), '$COMMAND'
>
> It always cuts it in half at the spaces.
>
> Error msg:
> ls: cannot access "test: No such file or directory
> ls: cannot access dir: No such file or directory
> ls: cannot access 1": No such file or directory
>
> What am i not seeing?
>
> thanks in advance
>
> -T
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list