Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
ion
ion
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 94
    • Issues 94
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • 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
  • #546

Closed
Open
Opened Oct 09, 2017 by Michael Aaron Murphy@mmstickMaintainer

Implement Fork Keyword (#531 Required)

Some may find a use for performing forks and redirecting their input/outputs. This can currently be done by creating functions, but perhaps an in-line syntax to emulate anonymous functions would also be desirable. Therefore, we should support a fork syntax that states it's intent clearly. As such, this is my proposed syntax, with an example of how the fork could perform redirection:

cat FILE | fork
    first_command args... | second_command
end >> LOG

The fork keyword could be collected and treated internally as a function, and re-use the existing code for executing functions, with a few minor changes. However, this cannot be implemented without first implementing #531 and #566 (closed).

Edited Dec 12, 2020 by matu3ba
Assignee
Assign to
Ion Shell v1.0.0
Milestone
Ion Shell v1.0.0
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/ion#546