-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a tiny script to prune empty directories from a structure. The
essential line is as follows:

tree --noreport -dfi "${1}" | tac | sed 's/"/\\"/g;s/^/rmdir
- --ignore-fail-on-non-empty "/;s/$/"/'|bash


Running it recently produced :
bash: command substitution: line 2201: syntax error near unexpected
token `('
bash: command substitution: line 2201: `rmdir --ignore-fail-on-non-empty
"/snapshot/Music/Etta James/The Essential Etta James/The Essential Etta
James (Disc 2)"'

I'm trying to understand why command substitution is happening at all,
since the opening paren isn't preceded by a dollar sign.


- -- 
Bill Gradwohl
Roatan, Honduras
504 9 899 2652
IM:billgradw...@gmail.com (No email please-IM only)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk2jRxMACgkQ7Orvev+eC8okUwCfYe9xnBSTQf2/ieWNNJ15rrg2
3poAoJXOswmlkqKHQb0VF3Vpz5pqBPN9
=o8PF
-----END PGP SIGNATURE-----

Reply via email to