Accessing my Droid Maxx from a shell script

MR ZenWiz mrzenwiz at gmail.com
Thu Dec 31 03:25:18 UTC 2015


On Tue, Dec 29, 2015 at 1:18 AM, Karl Auer <kauer at biplane.com.au> wrote:
> On Tue, 2015-12-29 at 00:23 -0800, MR ZenWiz wrote:
>>     indir=$DevicePath/'Internal\\ storage' ### This never works
>>     ls $indir
>
> Simplest is to wrap up anything with spaces (or that could contain
> spaces) in double quotes. Those two lines should be:
>
>     indir="$DevicePath/Internal storage"
>     ls "$indir"
>
Thanks, Karl and Colin and Patrick, all.

Quoting the directory name worked.  Now I have to fix all my scripts
so they can handle this, but at least it's done.

Kindest regards,
MR



More information about the ubuntu-users mailing list