Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
ion
ion
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 95
    • Issues 95
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • redox-os
  • ionion
  • Issues
  • #974

Closed
Open
Opened Aug 11, 2020 by baka@bakaContributor

Manual: confusing example in Process Expansions chapter

In the Process Expansions chapter the following code is given:

let array = @(cmd args...)

I expected this to produce an array that I could access using @array. It instead produces a string $array. I eventually figured out that I need to use let array = [ @(cmd args...) ] to perform a deep copy.

The example should be changed to let array = [ @(cmd args...) ] and include a link to https://doc.redox-os.org/ion-manual/html/variables/02-arrays.html#copy-array-into-a-new-array as a reminder of the reason for the square brackets.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/ion#974