Re: what does the $ as a variable do?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Todd Millecam
Date:  
To: Main PLUG discussion list
Subject: Re: what does the $ as a variable do?
You can see the value of any variable just by typing:
echo $STEAMROOT

It'll probably be something like /home/user/.steam
But, if you've installed your games in multiple locations, then it would
come back empty (because it would be an array or a list of directories),
and thus expand to nothing leaving:

rm -rf /*

Which means wipe your whole OS.

On Sun, Jan 18, 2015 at 5:49 PM, Michael Havens <> wrote:

> people are reporting a bug in steam. apparently there is a line in it that
> is deleting all the personal data all connected read/write media.
> this is how the line reads:
>
>
> rm -rf $STEAMROOT/*
>
>
> what does the '$' expand too?
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>




--
Todd Millecam
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss