[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

mellemrum i filnavne, bash



Hejsa

Jeg sidder og piller med et lille bashscript, som wrapper alsaplayer:

#!/bin/bash
edirol=`grep -i ua-1a /proc/asound/cards`
if [ -n "$edirol" ]; then
    options='-d hw:1'
fi
alsaplayer $options $1

Det virker fint, men hvis en fil har mellemrum i navnet bliver alsaplayer kaldt med hver delstreng:

sslug@sslug sbsampler]$ audioplayer 100\ 3\ 5.wav
-d hw:1 100 3 5.wav
Audio File Library: could not open file '5.wav' [error 3]
Audio File Library: null file handle [error 1]
/home/atte/bin/audioplayer: line 6: 19829 Segmentation fault alsaplayer $options $1


Hvordan undgår man dette?

--
peace, love & harmony
Atte

http://www.atte.dk

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-04-01, 02:02 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *