• Doors with 2 word handle

    From Tiny@21:1/130 to All on Sat Oct 19 17:32:56 2019
    Hello,

    In my doorparty script I use the following to get the users handle:

    HANDLE=$(sed '36q;d' ${DROPFILE} | tr -d '\r\n')

    This works fine for someone like me with a handle of "Tiny" what if my handle was "The Tiny" I need to convert it from "The Tiny" to "The_Tiny" so I can pass
    the handle
    to door party correctly. As it is now the script fails because the number of parameters is incorrect.

    Any ideas?

    Shawn


    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Tiny's BBS - tinysbbs.com (21:1/130)
  • From apam@21:1/126 to Tiny on Sun Oct 20 16:37:04 2019
    Hello,

    In my doorparty script I use the following to get the users handle:

    HANDLE=$(sed '36q;d' ${DROPFILE} | tr -d '\r\n')

    This works fine for someone like me with a handle of "Tiny" what if
    my handle was "The Tiny" I need to convert it from "The Tiny" to
    "The_Tiny" so I can pass
    the handle
    to door party correctly. As it is now the script fails because the
    number of parameters is incorrect.

    Any ideas?

    I think I remember this problem. Try adding

    HANDLE=${HANDLE// /_}

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand (21:1/126)
  • From Tiny@21:1/130 to apam on Sun Oct 20 15:20:02 2019
    Quoting apam to Tiny <=-

    I think I remember this problem. Try adding
    HANDLE=${HANDLE// /_}

    That's the magic. Thank-you!

    Shawn

    ... A beer's life does not revolve around football.

    --- EzyBlueWave V3.00 01FB001F
    * Origin: Tiny's BBS - telnet://tinysbbs.com:3023 (21:1/130)