<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha-tan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha-tan/</author_url>
  <blog_title>趣味的にっき</blog_title>
  <blog_url>https://ha-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>NetBSD</anon>
    <anon>Ruby</anon>
  </categories>
  <description>Windowsのファイル削除と違って、rm(1)はファイルをごみ箱に送らずに削除してしまう。で、この挙動で痛い目にあった人は、ごみ箱もどきを実装したスクリプトでよく胡麻化している。ウン百個目の車輪か分からないけど、僕もRubyで実装してみた。 ファイル名： saferm #!/usr/bin/env ruby # -*- ruby -*- # $Id: saferm,v 1.1 2005/05/25 15:09:25 s-tanaka Exp $ # def run(cmd, *args) pid = fork do exec(cmd, *args) end Process.waitpid(p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20050527%2F1117145077&quot; title=&quot; ごみ箱スクリプト - 趣味的にっき&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-05-27 07:04:37</published>
  <title> ごみ箱スクリプト</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20050527/1117145077</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
