quotes

  1. tembun

    Solved Confused about saving $@ into a variable

    Howdy! I'm making a script that has to deal with filenames with whitespaces in them and I encoutered an issue. I made a small simple script to demonstrate my question: foo #!/bin/sh for arg in "$@"; do echo "[1] Arg: $arg" done ######## args="$@" for arg in "$args"; do echo "[2] Arg...
  2. D-FENS

    Solved Glitch when using sysrc to set system variables

    I have stumbled on a glitch of sysrc (apparently). I am trying to set a system variable to a string containing quotes like so: # sysrc -f "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah" ssh_tunnel_connection_1: abc def gah -> abc def gahdef gah # sysrc -f...
Back
Top