From e5fa59974b312727c503e42b1bf94e1ecf3e556d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 11 Jul 2020 18:33:14 +0530 Subject: [PATCH] pidcat: make shebang more portable Distros like NixOS[1] do not have a typical /usr/bin/, and rely on shebangs using /usr/bin/env to go to the correct binary. Passing options to interpreters is not directly supported in env, and thus requires passing an extra -S [2] to ensure they go through correctly. 1: https://nixos.org 2: https://jhermann.github.io/blog/linux/know-how/2020/02/28/env_with_arguments.html Signed-off-by: Harsh Shandilya --- pidcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pidcat.py b/pidcat.py index efaa078..7bfb267 100755 --- a/pidcat.py +++ b/pidcat.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -u +#!/usr/bin/env -S python -u ''' Copyright 2009, The Android Open Source Project