[MacPorts] #28434: watch fails with spaces in file name or directory path

MacPorts noreply at macports.org
Wed Feb 16 08:18:57 PST 2011


#28434: watch fails with spaces in file name or directory path
------------------------------+---------------------------------------------
 Reporter:  ac1115@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  High              |   Milestone:                                       
Component:  ports             |     Version:  1.9.2                                
 Keywords:                    |        Port:  watch                                
------------------------------+---------------------------------------------
 the "watch" command fails if there is a space anywhere in the file name or
 directory path. Putting the file name in quotation marks still fails.

 for example, this line will fail.
 {{{
 watch tail ~/Library/Logs/iPhone\ Updater\ Logs\iPhoneUpdater\ 1.log
 }}}

 error is
 {{{
 /Users/username/Library/Logs/iPhone: No such file or directory.
 }}}




 If i were to sym link the log file to the root of my home folder as a file
 name without spaces it'll work fine.


 {{{
 ln -s  ~/Library/Logs/iPhone\ Updater\ Logs\iPhoneUpdater\ 1.log
 ~/iphonelog1.log

 watch tail ~/iphonelog1.log
 }}}
 ...this will work fine now

-- 
Ticket URL: <https://trac.macports.org/ticket/28434>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list