From: Pyatnitskich Evgeniy <pem@nm.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Выбор файла через Xdialog
Date: Mon, 19 Jul 2004 17:09:13 +0700
Message-ID: <20040719100913.GE12185@yerden.petr.kz> (raw)
In-Reply-To: <20040719115817.5b7a9b3d.dov@media-link.info>
On Mon, Jul 19, 2004 at 11:58:17 +0300
Dolgov OV wrote:
> Есть одна проблема, с которой пока незнаю как справиться.
> Переменной FILE присваивается /путь/к/файлу/файл.avi как есть. Т.е. если
> встречается в названии директории пробел, mplayer отказывается находить
> фильм.
> Например: /mnt/C/Мои фильмы/фильм.avi
> mplayer ругается, что нет файла /mnt/C/Мои
> т.е. ему надо указать /mnt/C/Мои\ фильмы/фильм.avi
>
> Так вот, можно ли чем нить обработать строку, передаваемую xdialog'ом на
> предмет комментирования пробелов и полученный результат уже присваивать
> переменной FILE?
FILE=/mnt/win_c/Мои документы/file.avi
mplayer "$FILE"
Т.е. пробелы можно экранировать кавычками.
--
-- Regards, P.E.M. <pem at nm dot ru>
next prev parent reply other threads:[~2004-07-19 10:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-08 9:15 Dolgov OV
2004-07-08 9:28 ` Myroslav M Rozum
2004-07-08 10:03 ` Dolgov OV
2004-07-08 11:34 ` Dolgov OV
2004-07-08 20:22 ` Vitaly Lipatov
2004-07-19 7:12 ` php-coder
2004-07-19 8:58 ` Dolgov OV
2004-07-19 9:22 ` Максим Ярушин
2004-07-19 10:09 ` Pyatnitskich Evgeniy [this message]
2004-07-19 11:38 ` Dolgov OV
2004-07-19 13:12 ` Pyatnitskich Evgeniy
2004-07-28 6:28 ` Dolgov OV
2004-07-19 10:09 ` Myroslav M Rozum
2004-07-19 11:39 ` Dolgov OV
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040719100913.GE12185@yerden.petr.kz \
--to=pem@nm.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git