Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. eval "$(
  2. # This subshell take the output of env, quotes it properly, and shoves it
  3. # onto one line.
  4. printf export\\t
  5. env |
  6. while read -r l; do
  7. printf %s\\n "$l" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/'/"
  8. done |
  9. paste -s -d ' '
  10. )"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement