GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    stib (stib@aus.social)'s status on Friday, 04-Jul-2025 13:39:08 JST stib stib

    Hi #nerds, if I run a #powershell script that takes a directory or a collection of directories as its arguments, the trailing slash in the directory name turns the following single quote into a double quote using evil Microsoft dark magic somehow.
    If my script is:
    ```
    param (
    [string[]]$inDirs
    )
    foreach ($dir in $inDirs){
    write-host $dir
    }
    ```
    and I do
    ```
    pwsh myscript.ps1 'c:\\some\dir\'
    ```
    The result is
    ```
    c:\\some\dir"
    ```
    How do I get it to unescape (or whatever it's doing) the last slash?
    #AskFedi #CodingHelp #pwsh

    In conversation about a year ago from aus.social permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.