#111 can't run fileless awk commands in shell-command

已關閉
nuclearkev2 月之前創建 · 0 條評論

Imagine you have some data like this:

something\tsomethingelse\tend
something new\tsomethingelsemnew\tendnew
something new new\tsomethingelsenewnew\tendnewnew

and you need to get the first column and last column. Since you're an expert awk(1) programmer you know that this is a simple awk '{ print $1 $3 }'. However, if you selected this region and ran it in ait, it won't work. This is very sad and will cause depression.

The issue is due to the $ escaping that happens around shell.c:354.

Imagine you have some data like this: ``` something\tsomethingelse\tend something new\tsomethingelsemnew\tendnew something new new\tsomethingelsenewnew\tendnewnew ``` and you need to get the first column and last column. Since you're an expert awk(1) programmer you know that this is a simple `awk '{ print $1 $3 }'`. However, if you selected this region and ran it in ait, it won't work. This is very sad and will cause depression. The issue is due to the $ escaping that happens around shell.c:354.
Kevin "The Nuclear" Bloom 在代碼提交 2 月之前 中引用了該問題
登入 才能加入這對話。
正在加載...
取消
保存
尚未有任何內容