Skip to content

Instantly share code, notes, and snippets.

View kne42's full-sized avatar
👩‍💻
doing a thing

Kira Evans kne42

👩‍💻
doing a thing
View GitHub Profile
@kne42
kne42 / verbatim.md
Created August 27, 2017 20:18
Getting Full Command Line with Bash

Preface

Sometimes you need the input exactly as written - for example if you want to be able to tell the difference between bar and b"a"r.

The following is a workaround/hack to retrieve the full command that executed your script.

Step 1

Rename your script to add a leading underscore to it. For example, foo becomes _foo.

Step 2