Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. clacke (clacke@social.heldscal.la)'s status on Saturday, 03-Mar-2018 20:58:07 EST clacke clacke
    Does anyone know what `${1+"$@"}` in a generated #racket launcher does?

    A few quick tests don't show me that it's any different from just "$@", and I don't see anything on a "+" in that position when I look in https://www.gnu.org/software/bash/manual/bashref.html#Shell-Parameter-Expansion .
    In conversation Saturday, 03-Mar-2018 20:58:07 EST from social.heldscal.la permalink
    1. Alexandre Oliva (lxoliva@social.libreplanetbr.org)'s status on Saturday, 03-Mar-2018 22:31:30 EST Alexandre Oliva Alexandre Oliva
      in reply to
      it is equivalent to "$@", except in old buggy shells that expanded "$@" to "" (a single zero-length argument) when no arguments were passed in. the 1+ part worked around that, discarding the erroneous empty argument if $1 was not defined
      In conversation Saturday, 03-Mar-2018 22:31:30 EST from social.libreplanetbr.org permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.