** Description changed:

- The following shell script use to work underneath drapper but doesn't
+ The following shell script use to work underneath dapper but doesn't
  work correctly anymore underneath edgy - for some reason the bash
  command 'type -p' is within a script it tries to evaluate the -p as a
  file name. Example:
  
  #!/bin/sh
  
  WINENAMES="wine"
  WINEEXEC=`type -p $WINENAMES | head -n 1`
  echo "WINEEXEC=$WINEEXEC"
  
  produces WINEEXEC=-p: not found
  
  But run the expression `type -p wine` on a command line and it works
  correctly and produces /usr/bin/wine

-- 
bash command type -p doesn't evaluate correctly in shell scripts
https://launchpad.net/bugs/71008

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to