Re: [Fish-users] How to expand wildcard?

2016-11-30 Thread Kurtis Rader
On Wed, Nov 30, 2016 at 5:54 PM, Shiyao Ma wrote: > Sorry I didn't make my question clear. > > Basically, I'd like to have an equivalent of the Bash's "glob-expand-word > (C-x *)". > > Given a folder with files a{a,b,c} inside. > ls a*<*> will expand to ls aa ab ac. > > Is there

Re: [Fish-users] Porting Fish shell to Haiku

2016-11-30 Thread Fabian Homborg
Mizsei Zoltán writes: > Hi Guys! > > I’m on my long way to get Fish properly ported to Haiku. I’ve already did > some efforts, we have an working recipe [1], but i’m not really happy yet. So > i have the following problems to solve: > > - The latest (2.4.0) Fish hangs

Re: [Fish-users] Porting Fish shell to Haiku

2016-11-30 Thread Kurtis Rader
On Wed, Nov 30, 2016 at 12:07 PM, Mizsei Zoltán wrote: > > I’m on my long way to get Fish properly ported to Haiku. I’ve already did > some efforts, we have an working recipe [1], but i’m not really happy yet. > So i have the following problems to solve: > > - The latest (2.4.0)

[Fish-users] Porting Fish shell to Haiku

2016-11-30 Thread Mizsei Zoltán
Hi Guys! I’m on my long way to get Fish properly ported to Haiku. I’ve already did some efforts, we have an working recipe [1], but i’m not really happy yet. So i have the following problems to solve: - The latest (2.4.0) Fish hangs sometimes if i press Ctrl-C in Terminal. One CPU load goes

Re: [Fish-users] external command inside function fails on OSX [SOLVED]

2016-11-30 Thread Dave Cottlehuber
On Wed, 30 Nov 2016, at 16:49, Bram Geron wrote: > Perhaps the output of hdiutil attach isn't what you expect. What if you > put "echo -n $ramdiskpath | xxd" in between? Awesome protip Bram! : 2f64 6576 2f64 6973 6b31 2020 /dev/disk1 000c: 2020 2020 2020 2020 0920 2020 .

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Kurtis Rader
The problem is the output of `hdiutil` includes trailing spaces and tabs: $ hdiutil attach -nomount ram://2097152 | od -tx1z 000 2f 64 65 76 2f 64 69 73 6b 36 20 20 20 20 20 20 >/dev/disk6 < 020 20 20 20 20 09 20 20 20 20 20 20 20 20 20 20 20 >. < 040 20 20 20 20

Re: [Fish-users] How to expand wildcard?

2016-11-30 Thread Kurtis Rader
On Wed, Nov 30, 2016 at 4:37 AM, Shiyao Ma wrote: > > Say I have three files, aa, ab, and bb > I want to delete aa and ab. > > Normal, I would do: rm -f a*. And hope will exapnd a* to > aa,ab. so that I can confirm that's what I want to delete. > > But fish won't expand. > Omit

Re: [Fish-users] How to expand wildcard?

2016-11-30 Thread Shiyao Ma
dunno how bash works, but zsh has it. It would be really handy to have this feature. -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Glenn Jackman
What's the output of that `hdiutil` command? Does that out span multiple lines? On Wed, Nov 30, 2016 at 8:14 AM, Dave Cottlehuber wrote: > Hi fisherfolk, > > This is a copy-pasta function from my previous zsh setup, on OSX., to > create a ramdisk of X Gb. Unfortunately the

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Bram Geron
Perhaps the output of hdiutil attach isn't what you expect. What if you put "echo -n $ramdiskpath | xxd" in between? Cheers, Bram -- Bram Geron Doctoral researcher in computer science On Wed, 30 Nov 2016, at 02:32 PM, Dave Cottlehuber wrote: > On Wed, 30 Nov 2016, at 14:40, Diego Zamboni wrote:

Re: [Fish-users] How to expand wildcard?

2016-11-30 Thread SanskritFritz
On Wed, Nov 30, 2016 at 1:37 PM, Shiyao Ma wrote: > Say I have three files, aa, ab, and bb > I want to delete aa and ab. > > Normal, I would do: rm -f a*. And hope will exapnd a* to > aa,ab. so that I can confirm that's what I want to delete. > > But fish won't expand. >

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Dave Cottlehuber
On Wed, 30 Nov 2016, at 14:40, Diego Zamboni wrote: > I'm not sure how PATH settings are propagated through functions. One > quick > solution would be to just use the full path for all commands (e.g. > /usr/sbin/diskutil). Thanks Diego, It's definitely not a path issue as the preceding diskutil

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Diego Zamboni
I'm not sure how PATH settings are propagated through functions. One quick solution would be to just use the full path for all commands (e.g. /usr/sbin/diskutil). On Wed, Nov 30, 2016 at 2:14 PM, Dave Cottlehuber wrote: > Hi fisherfolk, > > This is a copy-pasta function

[Fish-users] external command inside function fails on OSX

2016-11-30 Thread Dave Cottlehuber
Hi fisherfolk, This is a copy-pasta function from my previous zsh setup, on OSX., to create a ramdisk of X Gb. Unfortunately the final command, diskutil erasevolume ... fails unless run manually. I've tried sleep 5, sprinkling quotes, wrapping it in (...) but nada. Any idea why? fish 2.3.1 via

[Fish-users] How to expand wildcard?

2016-11-30 Thread Shiyao Ma
Hi, Say I have three files, aa, ab, and bb I want to delete aa and ab. Normal, I would do: rm -f a*. And hope will exapnd a* to aa,ab. so that I can confirm that's what I want to delete. But fish won't expand. -- 吾輩は猫である。ホームーページはhttps://introo.me