Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to deal with white space in a folder name inside auto_nfs / auto_master

I successfully mounted a local share to save spaces on my macOS High Sierra 10.13.4:

$ mount
 localhost:/Volumes/DATA/Application_Support/Logic on /Library/Application Support/Logic (nfs)

Now I would like to automount it.

so I tried this :

on auto_master :
/-   auto_nfs   -nobrowse,hidefromfinder

on auto_nfs


/Library/Application Support/Logic     -fstype=nfs,noowners,nolockd,noresvport,hard,bg,intr,rw,tcp,nfc  nfs://localhost:/Volumes/DATA/Application_Support/Logic


**BUT**. the


/Library/Application Support/Logic


contains space between Application and Support.

I tried to put a space character like this :


/Library/Application\040Support/Logic


but no luck because the

`sudo automount -cv`

command gives :

map auto_nfs 0Bi    0Bi    0Bi   100%  0 0  100%   /Library/Application\040Support/Logic


It creates another folder...

I'm stuck. Is someone has a clue ?

Best regards.

iMac, macOS High Sierra (10.13.4)

Posted on May 25, 2018 1:21 PM

Reply

Similar questions

6 replies

May 26, 2018 6:38 PM in response to vegasus

Yes, unfortunately , it creates a folder named:

/Library/Application\

The auto_master man page indicates you can either use a backslash, or quotes:

Quoting

Special characters, such as white space characters, a dollar sign, or an

ampersand can be quoted by escaping them with a backslash (\); this pre-

vents white space from being interpreted as a field separator, prevents a

dollar sign from being interpreted as the beginning of a variable name,

and prevents an ampersand from being interpreted as the key field for the

entry in which it occurs. A sequence of characters can also be quoted by

enclosing it in double-quotes (").

May 26, 2018 7:08 PM in response to Barney-15E

Hello,


I tried it:

$cat /etc/auto_nfs

/Library/Application\ Support/Logic -fstype=nfs,noowners,nolockd,noresvport,hard,bg,intr,rw,tcp,nfc nfs://localhost:/Volumes/DATA/Application_Support/Logic

sudo automount -cv

automount: /net updated

automount: /home updated

automount: /Library/Application\ updated

automount: no unmounts

df -h

map auto_nfs 0Bi 0Bi 0Bi 100% 0 0 100% /Library/Application\

how to deal with white space in a folder name inside auto_nfs / auto_master

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.