Skip to content

Commit

Permalink
$ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
molarmanful committed Nov 17, 2023
1 parent b8d4e9d commit 6a08406
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sclin/src/Cmd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ extension (env: ENV)
*/
case "$THREAD" => env.push(STR(Thread.currentThread.getName))
/*
@s -> MAP[(STR => STR)*]
Environment variables.
*/
case "$ENV" => env.push(sys.env.map(a => (a._1.sSTR, a._2.sSTR)).toMAP)
/*
@s -> MAP[(STR => _)*]
Current scope.
*/
Expand Down

0 comments on commit 6a08406

Please sign in to comment.