質問編集履歴

2

2023/01/26 07:29

投稿

wada3
wada3

スコア103

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  上記を実行すると下記のようなエラーが出ます。どうしたら解消できるでしょうか?
8
8
 
9
- [2023-01-26 02:26:30 EST] csh -f testbench.csh
9
+ [2023-01-26 02:28:47 EST] csh -f testbench.csh
10
10
  set: Variable name must begin with a letter.
11
11
  Exit code expected: 0, received: 1
12
- Done

1

2023/01/26 07:28

投稿

wada3
wada3

スコア103

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  set aaa = 'a a'
2
2
  set bbb =`echo "$aaa" | sed 's/ /_/g'`
3
- if ($after_substitution == 'a_a') then
3
+ if ($bbb == 'a_a') then
4
4
  echo "OK"
5
5
  endif
6
6