you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 2 months ago (8 children)

I changed the $ in bash to § because fuck capitalism, keep your currency out of my free software

  • source
  • parent
  • hideshow 8 child comments
  • [–] 5 points 2 months ago (6 children)

    How will you escape $var usage in scripts though :P

  • source
  • parent
  • hideshow 6 child comments
  • [–] 3 points 2 months ago (5 children)

    I've... never had to do that. What does it do?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 2 months ago (2 children)

    bash uses $ character to indicate variables. for example, you can see your current environment variables with the env command. then to see a specific variable echo $var to print its value.

    scripts may call variables for a variety of reasons. one common case would be collecting information from the environment it's running under to determine whether it's compatible.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 months ago (1 child)

    Oh. Oh yeah, I have done that. Like for adding the date to a file name when I dump a terminal output to into a text file, or adding hit counts to a custom notification after running a scan on a cron job.

    I just use the character for that. It's fine, can't win them all, but it's better than having it at the beginning of every command line for seemingly no reason

  • source
  • parent
  • hideshow 1 child comment