[Bug 730] New: swift command gives error message when run with explicit path
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=730 Summary: swift command gives error message when run with explicit path Product: Swift Version: 0.93 Platform: PC OS/Version: Mac OS Status: ASSIGNED Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] When you run the 0.93 swift command from an explicit path, it gets confused when generating the "no sites file" message: login2$ swift-0.93/bin/swift -version no sites file specified, setting to default: which: no swift in (/soft/apache-ant/1.8.2/etc/sites.xml Error: XML parsing error in which: no swift in (/soft/apache-ant/1.8.2/etc/sites.xml which: no swift in (/soft/apache-ant/1.8.2/etc/sites.xml is [Errno 2] No such file or directory: 'which: no swift in (/soft/apache-ant/1.8.2/etc/sites.xml' Swift 0.93 swift-r5483 cog-r3339 when run from PATH its OK: login2$ PATH=$(pwd)/swift/bin:$PATH login2$ swift -version no sites file specified, setting to default: /home/wilde/AndreysOptimizer/src/swift/etc/sites.xml Swift 0.93 swift-r5483 cog-r3339 login2$ --- While fixing this, also fix: dont generate this message at all if user is just doing -version. Also dont generate swift.log file in this (or any???) case. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=730 David Kelly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from David Kelly <[email protected]> 2014-02-26 12:07:10 --- Working in 0.95 [davidkelly999@midway001 ~]$ which swift /usr/bin/which: no swift in (/software/java-1.7-x86_64/bin:/software/slurm-current-el6- ... [davidkelly999@midway001 ~]$ /home/davidkelly999/swift/swift-0.95/cog/modules/swift/dist/swift-svn/bin/swift -version0.95/cog/modules/swift/dist/swift-svn/bin/swift -version Swift 0.95 Branch SVN swift-r7607 cog-r3874 -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov