TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ctypes.sh – A foreign function interface for bash

94 点作者 afics超过 9 年前

4 条评论

1amzave超过 9 年前
Neat...and on a somewhat similar note (bash enable -f hacks), some bash FUSE bindings I wrote a few years back: <a href="https:&#x2F;&#x2F;github.com&#x2F;zevweiss&#x2F;booze" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zevweiss&#x2F;booze</a><p>I initially wrote it basically just for giggles, but was rather pleased a few months ago when I realized I could use it for something I actually needed, and it was just the right thing (presenting a mount point that acted as a view of the differences between two rsnapshot-style hard-link trees -- only took a few dozen lines of very simple code).
AndyKelley超过 9 年前
The problem with this project is that somebody might use it. I argue that if you need to do something in bash that involves more than a sequence of commands, including a simple if statement, then you should switch from bash to a proper scripting language (python, perl, ruby, nodejs, take your pick.)
评论 #10188055 未加载
mzs超过 9 年前
Some earlier discussion, people porting to FreeBSD and what not: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9959628" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9959628</a>
eximius超过 9 年前
What could go wrong? &#x2F;s<p>All sarcasm aside, a very interesting idea. I&#x27;m not sure what the proper use case is, but I&#x27;m sure someone will love this.
评论 #10187262 未加载
评论 #10187177 未加载