lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] odd/multiarch 768d4fc 4/7: Impede executing a script


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/multiarch 768d4fc 4/7: Impede executing a script that should instead be sourced
Date: Thu, 25 Apr 2019 17:54:22 -0400 (EDT)

branch: odd/multiarch
commit 768d4fcdf97da3237b843b17e73ec05ea61a1675
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Impede executing a script that should instead be sourced
    
    Added an invalid argument to the shebang as suggested by Ingo Karkat.
    The argument he suggests is actually
      source-this-script
    which would cause dash to print
      Can't open source-this-script
    but we prefer to say "free software" rather than "open source".
---
 set_arch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/set_arch.sh b/set_arch.sh
index 6afbb7b..acf2326 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh this-script-must-be-sourced-not-run
 
 # Set $PATH, $WINEPATH, and $PERFORM based on $LMI_HOST.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]