[Konsole-devel] [Bug 174554] New: In a bash script, the command : " konsole "$0" args " fails in one case
Jonas
Jonas.Baggett at edu.hefr.ch
Fri Nov 7 17:28:35 UTC 2008
http://bugs.kde.org/show_bug.cgi?id=174554
Summary: In a bash script, the command : " konsole "$0" args "
fails in one case
Product: konsole
Version: 2.1
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: konsole-devel at kde.org
ReportedBy: Jonas.Baggett at edu.hefr.ch
Version: 2.1 (using 4.1.3 (KDE 4.1.3), Debian packages)
Compiler: cc
OS: Linux (i686) release 2.6.27-4.slh.5-sidux-686
I found a bug with the new konsole of kde 4.1.x with doesn't exists with the
konsole of kde 3.5.x.
I have made a bash script called "test.sh" (located in ~/test) :
#!/bin/bash
if [ $1 ]; then
echo "ok"
sleep 5
else
konsole -e "$0" a
fi
The idea is when clicked it launchs itself in a new konsole, and it works.
I have made another bash script "launch_all.sh" :
#!/bin/sh
cd ~/test # Go to the directory in which there is the "test.sh" script
for i in `ls *.sh` ; do
./$i
done
Then it should launchs the script "test.sh", but it launchs a new konsole in
which is displayed this error message :
Warning: Could not start program './test.sh' with arguments './test.sh a'.
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list