Hi and thank you for answering :),

Sorry, I thought I gave the Ubuntu versions : I tried 8.04 and 9.10.
The thing can be reproduced using a fresh 9.10 server installation + OpenSSH 
server profile and additional php5-cli package. I didn't tried without SSH 
because I always use it but I do think there is some dependency ?

I give the packages from this install as attachment (packages.txt)



Hope you will be able to find something because compilation stuff is not
my specialty and I have a lot of PHP business logic that is behind this
completion and makes the tool I code very more usable ...

Regards,

Le 31 janv. 2010 à 20:19, Ondřej Surý a écrit :

> Hi,
> 
> could you provide versions of Ubuntu you are running and version of
> php5?
> 
> Also list of installed modules would be great, there are known bugs; one
> in mysql, when running on multiple cores, and second in pgsql+curl
> modules.
> 
> Ondrej
> 
> -- 
> PHP process output (?) that breaks bash completion
> https://bugs.launchpad.net/bugs/514989
> You received this bug notification because you are a direct subscriber
> of the bug.
> 
> Status in “php5” package in Ubuntu: New
> 
> Bug description:
> Binary package hint: php5
> 
> Hello,
> 
> I first tried to post : http://ubuntuforums.org/showthread.php?p=8734334 and 
> after recompiling from php.net sources, I'm now convinced there is something 
> wrong in patches that are applied or in some compilation option.
> 
> Goal : complete the command line ./myscript.sh.
> Steps :
> - create die.php, completion.sh and myscript.sh in current folder using the 
> following code sample
> - chmod 755 myscript.sh
> - source completion.sh in current bash
> - try to complete ./myscript.sh : it works
> - uncomment die.php call in completion.sh
> - source completion.sh again
> - try to complete ./myscript.sh : it does not work. A simple call to php 
> process breaks the thing. Only with ubuntu PHP packages (tested on 8.04 and 
> 9.10 releases ; 
> 
> == die.php ==
> 
> <?php
> // Not so much ;)
> die();
> 
> == completion.sh ==
> 
> #!/bin/bash
> 
> _completemyscript()
> {
>        local cur cmds cmdOpts
>        cur="${COMP_WORDS[COMP_CWORD]}"
> 
>        # Normally, nothing should happened with this line
>        #php die.php > /tmp/somefile 2>&1
> 
>        # Static completion
>        COMPREPLY=( $( compgen -W "a b c d" -- "${cur}" ) )
>        return 0
> }
> 
> complete -F _completemyscript -o "default" myscript.sh
> 
> == myscript.sh ==
> 
> #!/bin/bash
> echo "Hello World"
> 
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/php5/+bug/514989/+subscribe

-- 
Alexandre Simon
http://alex.zybar.net

** Attachment added: "packages.txt"
   http://launchpadlibrarian.net/38590724/packages.txt

-- 
PHP process output (?) that breaks bash completion
https://bugs.launchpad.net/bugs/514989
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to