Quantcast
Viewing latest article 40
Browse Latest Browse All 42

Brace Expansion not working bash

I am trying to use brace expansion in a bash script as follows.

#!/bin/bashdocument_root="/var/www/www.example.com"`chmod -R g+w $document_root/{../captcha,../files}`

this gives me the error

chmod: cannot access `/var/www/www.example.com/{../captcha,../files}': No such file or directory

but when I run this in a terminal it works just fine.


Viewing latest article 40
Browse Latest Browse All 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>