#336 closed bug (fixed)
[bash/sh] Install.sh fails due to weird if behaviour
Reported by: | johndrinkwater | Owned by: | sikosis |
---|---|---|---|
Priority: | low | Milestone: | R1 |
Component: | Applications | Version: | |
Keywords: | Cc: | diver | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
/boot/apps/imkit$ ./Install.sh [pops up warning shown below] /boot/apps/imkit$
Head of script:
cd "$(dirname "$0")" if pwd | grep " ";
then alert "Please install from a directory with no spaces in the path name,
the current one (pwd
) has spaces. Just move all the files to somewhere that
doesn't have spaces, like /boot/home/mydirectory. If there are spaces, the
install script malfunctions. Sorry.";
exit 1;
fi
Attachments (1)
Change History (10)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Cc: | added |
---|
comment:3 by , 19 years ago
bug_group: | → developers |
---|
comment:4 by , 19 years ago
Cc: | added |
---|
comment:5 by , 19 years ago
I found a short testcase :
echo toto | false echo $?
=> it returs 1 on R5 and 0 on Haiku. Seems like a process/pipe problem. Axel, any ideas ?
comment:6 by , 19 years ago
Resolution: | → fixed |
---|
comment:8 by , 19 years ago
Status: | new → closed |
---|
Note:
See TracTickets
for help on using tickets.
Could you provide an easier way to reproduce this bug (ie attach a script which works in R5 and not on Haiku) ?