what does the $ as a variable do?
Todd Millecam
tyggna at gmail.com
Sun Jan 18 17:55:52 MST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150118/ba5898d7/attachment.html>
More information about the PLUG-discuss
mailing list