[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shell-escape a string
From: |
Mark A. Hershberger |
Subject: |
Shell-escape a string |
Date: |
Fri, 06 Mar 2015 10:17:36 -0500 |
Is there a piece of standard code or a library that I can use to escape
a string so it is safe to pass to bash?
Specifically, I have submitted this bit[1] to add deletion of duplicate
messages to a guile script included with mu (maildir utils) and now
we're looking at how to escape the file names to keep this maliciously
inserted maildir files from causing problems.
Any hints?
Footnotes:
[1] https://github.com/djcb/mu/pull/593
--
Mark A. Hershberger
NicheWork LLC
717-271-1084
- Shell-escape a string,
Mark A. Hershberger <=
Re: Shell-escape a string, Taylan Ulrich Bayırlı/Kammer, 2015/03/07