what does the $ as a variable do?

Michael Havens bmike1 at gmail.com
Sun Jan 18 18:01:57 MST 2015


thank you for letting me know this.

:-)~MIKE~(-:

On Sun, Jan 18, 2015 at 5:55 PM, Todd Millecam <tyggna at gmail.com> wrote:

> 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 <bmike1 at gmail.com> 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 - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
>
>
> --
> Todd Millecam
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150118/9ba45b5e/attachment.html>


More information about the PLUG-discuss mailing list