我使用以下命令,我安装了鱼
diff -y <(unzip -l old.zip) <(unzip -l new.zip)
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
fish: Invalid redirection target: (unzip -l new.zip)
diff -y <(unzip -l new.zip) <(unzip -l old.zip)
^
fish: Invalid redirection target: (unzip -l old.zip)
diff -y <(unzip -l new.zip) <(unzip -l old.zip)
Run Code Online (Sandbox Code Playgroud)
有解决方法吗?
该<(a_command)语法是不是鱼支持bash'ism.为了保持鱼对显式命令的偏好而不是魔术语法,该psub命令用于实现类似的效果:
diff -y (unzip -l new.zip | psub) (unzip -l old.zip | psub)
Run Code Online (Sandbox Code Playgroud)