Skip to content

Commit

Permalink
[test/lint] Fix build
Browse files Browse the repository at this point in the history
Also remove remnants of

    json read :x

I think we should remove 'read :x' too.
  • Loading branch information
Andy Chu committed Apr 17, 2024
1 parent 04d9509 commit 9658f67
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion osh/word_eval.py
Expand Up @@ -54,7 +54,7 @@
from core import state
from core import ui
from core import util
from data_lang import j8
#from data_lang import j8
from data_lang import j8_lite
from core.error import e_die
from frontend import consts
Expand Down
4 changes: 2 additions & 2 deletions spec/ysh-funcs-external.test.sh
Expand Up @@ -4,7 +4,7 @@
#### JSON func on top of proc

proc myadd {
json read :args
json read (&args)

# convenient!
fopen >&2 {
Expand All @@ -14,7 +14,7 @@ proc myadd {
json write (args[0] + args[1])
}

echo '[1, 2]' | myadd | json read :result
echo '[1, 2]' | myadd | json read (&result)

# TODO:
# Rewrite this as:
Expand Down
2 changes: 1 addition & 1 deletion test/nohup.sh
Expand Up @@ -61,7 +61,7 @@ test-read() {
test-json-read() {
rm -v nohup.out || true

run-shell bin/osh -c 'json read :x'
run-shell bin/osh -c 'json read'
}

soil-run() {
Expand Down
2 changes: 1 addition & 1 deletion ysh/expr_eval.py
Expand Up @@ -53,7 +53,7 @@
from core import state
from core import ui
from core import vm
from data_lang import j8
#from data_lang import j8
from frontend import lexer
from frontend import match
from frontend import typed_args
Expand Down

0 comments on commit 9658f67

Please sign in to comment.