[Gllug] Bash quote woes!

John Edwards john at cornerstonelinux.co.uk
Tue Jan 27 17:12:35 UTC 2009


On Tue, Jan 27, 2009 at 04:41:16PM +0000, Benjamin Donnachie wrote:
> I'd be very very VERY grateful if someone could please help with the
> following bash fragment:
> 
> [...]
> function connecteddrives()
> {
>   connecteddrives=""

Err, why do you use the same name for a function and a variable?

I'm not sure if it's legal or not, but it does seem confusing.

-- 
#---------------------------------------------------------#
|    John Edwards   Email: john at cornerstonelinux.co.uk    |
#---------------------------------------------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090127/a844c556/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list