[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gcmd-usr] Passing multiple file pathes to shell scripts
From: |
Uwe Scholz |
Subject: |
Re: [gcmd-usr] Passing multiple file pathes to shell scripts |
Date: |
Mon, 11 Jul 2022 23:34:09 +0200 |
Hi Michael,
this behavior actually changed in the release for version 1.14.0.
(Unfortunately, this was missed being documented in the release notes).
Could you try to change your script execution by passing "%f" to it
instead of "%u"? I think this should return the old behavior which you
exptected.
Excerpt from the Gcmd Documentation:
String expansion - String Expands to...
%f File name (or list for multiple selections)
%F Quoted filename (or list for multiple selections)
%p Full file system path (or list for multiple selections)
%P Quoted full file system path (or list for multiple selections)
%s Synonym for %P (for compatibility with previous versions of GNOME
Commander)
%u Fully qualified URI for the file (or list for multiple selections)
%d Full path to the directory containing file
%D Quoted full path to the directory containing file
%% Percent sign
See also: https://gitlab.gnome.org/GNOME/gnome-commander/-/issues/107
(Fixed in version 1.14.0)
Best
Uwe
Am Sat, 9 Jul 2022 04:34:22 +0200 schrieb mi:
>
> Sry, i forgot to quote a string in this line,
>
> echo -e $files | grep -vx "" | while read file; do
>
> It still works for one whitespace a time (that's why i didn't notice), but
> for a filename with a string of several whitespaces we need: echo -e "$files"
>
> hth
>
>
>
>
> _______________________________________________
> gcmd-users mailing list
> gcmd-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gcmd-users
--
Must be getting close to town -- we're hitting more people.
- [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/08
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/08
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts,
Uwe Scholz <=
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/12
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/12
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/12
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, mi, 2022/07/12
- Re: [gcmd-usr] Passing multiple file pathes to shell scripts, Uwe Scholz, 2022/07/14