Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37515575
en ru br
ALT Linux repos
S:5.45.4-alt4
5.0: 5.44-alt3
4.1: 5.44-alt2
4.0: 5.43-alt3
3.0: 5.43-alt1

Other repositories
Upstream:5.44.1

Group :: Development/Tcl
RPM: expect

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: use-shebang-trick-like-other-examples.patch
Download


diff --git a/example/autopasswd b/example/autopasswd
index 47e925e..76e0b9d 100755
--- a/example/autopasswd
+++ b/example/autopasswd
@@ -1,4 +1,8 @@
-#!/usr/bin/tclsh
+#!/bin/sh
+# -*- tcl -*-
+# The next line is executed by /bin/sh, but not tcl \
+exec tclsh "$0" ${1+"$@"}
+
 # $Id: autopasswd.expect,v 1.6 1999/08/27 19:39:18 moniot Exp $
 # Wrapper to run passwd(1) non-interactively
 #  Usage:  autopasswd username password
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin