[bug-notifications] [wgetpaste 0003871]: /usr/bin/bash on Solaris 8 + 9 bails out on wgetpaste

Mantis Bug Tracker noreply at opencsw.org
Sun Aug 30 09:58:14 CEST 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=3871 
====================================================================== 
Reported By:                skayser
Assigned To:                maciej
====================================================================== 
Project:                    wgetpaste
Issue ID:                   3871
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-08-28 21:53 CEST
Last Modified:              2009-08-30 09:58 CEST
====================================================================== 
Summary:                    /usr/bin/bash on Solaris 8 + 9 bails out on
wgetpaste
Description: 
skayser @ build8s ~$ wgetpaste --help
/opt/csw/bin/wgetpaste: line 114: syntax error near unexpected token
`<<<'
/opt/csw/bin/wgetpaste: line 114: `     sed -e 's|%|%25|g' -e 's|&|%26|g'
-e 's|+|%2b|g' -e 's|;|%3b|g' -e 's| |+|g' <<< "$*" || die "sed failed"'

skayser @ build9s ~$ wgetpaste --help
/opt/csw/bin/wgetpaste: line 114: syntax error near unexpected token
`<<<'
/opt/csw/bin/wgetpaste: line 114: `     sed -e 's|%|%25|g' -e 's|&|%26|g'
-e 's|+|%2b|g' -e 's|;|%3b|g' -e 's| |+|g' <<< "$*" || die "sed failed"'

skayser @ build8s ~$ head -1 /opt/csw/bin/wgetpaste
#!/usr/bin/env bash

skayser @ build8s ~$ type bash
bash is /usr/bin/bash

Using /opt/csw/bin/bash works.

skayser @ build8s ~$ /opt/csw/bin/bash /opt/csw/bin/wgetpaste --help |
head
Usage: /opt/csw/bin/wgetpaste [options] [file[s]]

Options:
    -l, --language LANG           set language (defaults to "Plain Text")
    -d, --description DESCRIPTION set description (defaults to "stdin" or
filename)
    -n, --nick NICK               set nick (defaults to your username)
    -s, --service SERVICE         set service to use (defaults to
"dpaste")
    -e, --expiration EXPIRATION   set when it should expire (defaults to
"30 days")

    -S, --list-services           list supported pastebin services

====================================================================== 

---------------------------------------------------------------------- 
 (0006648) maciej (manager) - 2009-08-29 11:53
 http://www.opencsw.org/bugtrack/view.php?id=3871#c6648 
---------------------------------------------------------------------- 
Tested on the buildfarm:

maciej at build8st [build8st]:~ > echo "The OS is: $(uname -a)" | wgetpaste
Your paste can be seen here: http://dpaste.com/86922/

Looks good, I'm sending it to Phil to release.




More information about the bug-notifications mailing list